/usr/share/axiom-20170501/input/finitegraph.input is in axiom-test 20170501-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | )set break resume
)spool finitegraph.output
)set message test on
)set message auto off
)clear all
)sys cp $AXIOM/../../src/input/finitegraph.input.pamphlet .
)lisp (tangle "finitegraph.input.pamphlet" "fgraf.spad" "fgraf.spad")
)co fgraf
--S 1 of 8
g:FiniteGraph(INT):=new();
--R
--R
--R Type: FiniteGraph(Integer)
--E 1
--S 2 of 8
addNode(g,1)
--R
--R
--R (2) [1]
--R Type: List(Integer)
--E 2
--S 3 of 8
addNode(g,2)
--R
--R
--R (3) [2]
--R Type: List(Integer)
--E 3
--S 4 of 8
e:=addEdge(g,1,2)
--R
--R
--R (4) [source= 1,target= 2]
--R Type: Record(source: Integer,target: Integer)
--E 4
--S 5 of 8
source(e)$FiniteGraph(INT)
--R
--R
--R (5) 1
--R Type: Integer
--E 5
--S 6 of 8
target(e)$FiniteGraph(INT)
--R
--R
--R (6) 2
--R Type: Integer
--E 6
--S 7 of 8
edgeList(g)
--R
--R
--R (7) [[source= 1,target= 2]]
--R Type: List(Record(source: Integer,target: Integer))
--E 7
--S 8 of 8
nodeList(g)
--R
--R
--R (8) [1,2]
--R Type: List(Integer)
--E 8
)spool
)lisp (bye)
|