File: mlti.jgr

package info (click to toggle)
jgraph 83-25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: ansic: 4,596; makefile: 145; sh: 106; awk: 104
file content (35 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
(* 

  Jgraph file for the simple multicomputer picture:

  Pc--P1--P2

 *)

newgraph
  xaxis size 1.5 min 0 max 2 nodraw
  yaxis size 0.4 min 0 max 1 nodraw

(* Draw the lines connecting the processors *)

newcurve
  marktype none
  linetype solid
  pts
    0 0   1 0   2 0

(* Draw circles for the processors on top of the lines *)

newcurve 
  marktype circle
  marksize .3
  linetype none
  fill 1
  pts
    0 0   1 0   2 0

(* Draw the labels for the processors *)

newstring fontsize 9 x 0   y 0 hjc vjc : Pc
newstring fontsize 9 x 1   y 0 hjc vjc : P1
newstring fontsize 9 x 2   y 0 hjc vjc : P2