first commit
This commit is contained in:
2
perl/lib/Graph-Easy-0.76/t/syntax/0000.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0000.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# This is a single-node graph with a comment:
|
||||
[ Bonn ]
|
||||
4
perl/lib/Graph-Easy-0.76/t/syntax/0001.txt
Normal file
4
perl/lib/Graph-Easy-0.76/t/syntax/0001.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# A node pointing back to itself
|
||||
|
||||
[ Bonn ] -> [ Bonn ]
|
||||
|
||||
5
perl/lib/Graph-Easy-0.76/t/syntax/0002.txt
Normal file
5
perl/lib/Graph-Easy-0.76/t/syntax/0002.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# 2 nodes, one pointing back to itself
|
||||
|
||||
[ Bonn ] -> [ Berlin ]
|
||||
[ Bonn ] -> [ Bonn ]
|
||||
|
||||
6
perl/lib/Graph-Easy-0.76/t/syntax/0003.txt
Normal file
6
perl/lib/Graph-Easy-0.76/t/syntax/0003.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
# 2 nodes, one pointing back to itself
|
||||
|
||||
[ Ruhleben ] -> [ Aschersleben ]
|
||||
[ Aschersleben ] -> [ Ruhleben ]
|
||||
[ Ruhleben ] -> [ Ruhleben ]
|
||||
|
||||
3
perl/lib/Graph-Easy-0.76/t/syntax/0010.txt
Normal file
3
perl/lib/Graph-Easy-0.76/t/syntax/0010.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
[ Bonn ] -> [ Berlin ]
|
||||
|
||||
3
perl/lib/Graph-Easy-0.76/t/syntax/0011.txt
Normal file
3
perl/lib/Graph-Easy-0.76/t/syntax/0011.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
[ Berlin\n (West) ] -> [ Berlin\n (Ost) ]
|
||||
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0020.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0020.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
[ Kiel ] -> [ Kassel ]
|
||||
[ Kassel ] -> [ Wismar ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0021.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0021.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# anonymous, invisible nodes
|
||||
[ ] -> [ Heilbronn ] -> []
|
||||
11
perl/lib/Graph-Easy-0.76/t/syntax/0030.txt
Normal file
11
perl/lib/Graph-Easy-0.76/t/syntax/0030.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
# Different edge styles
|
||||
[ Bonn ] <-> [ Berlin ] # bidirectional
|
||||
[ Berlin ] ==> [ Rostock ] # double
|
||||
[ Hamburg ] ..> [ Altona ] # dotted
|
||||
[ Dresden ] - > [ Bautzen ] # dashed
|
||||
[ Schweinfurt ] <=> [ Ulm ] # bidrectional, double
|
||||
[ Magdeburg ] .-> [ Burg ] # dot-dash
|
||||
[ Burg ] -- [ Wolfen ] # single, bidirectional w/o arrows
|
||||
[ Wolfen ] .. [ Coswig ] # dotted, bidirectional w/o arrows
|
||||
[ Magdeburg ] ..> [ Aue ] # dotted, going downwards
|
||||
|
||||
3
perl/lib/Graph-Easy-0.76/t/syntax/0040.txt
Normal file
3
perl/lib/Graph-Easy-0.76/t/syntax/0040.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# two unconnected parts of a graph
|
||||
[ Kiel ] -> [ Kassel ]
|
||||
[ Koblenz ] -> [ Konstanz ]
|
||||
7
perl/lib/Graph-Easy-0.76/t/syntax/0050.txt
Normal file
7
perl/lib/Graph-Easy-0.76/t/syntax/0050.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# override defaults for nodes, edges, groups and graph
|
||||
node { color: brown; }
|
||||
graph { fill: #990066; border: 1px solid black; }
|
||||
group { fill: grey; }
|
||||
edge { color: white; }
|
||||
|
||||
[ Wismar ] -> [ Neustadt ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0060.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0060.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# override attributes of only one node
|
||||
[ Bonn ] { color: red; } -> [ Berlin ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0061.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0061.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Override the text of a node with the label attribute
|
||||
[ Bonn ] -> [ Berlin ] -> [ Bonn2 ] { label: Bonn; }
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0062.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0062.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Override attributes of an edge
|
||||
[ Bonn ] -> { color: blue; label: Autobahn; } [ Berlin ]
|
||||
16
perl/lib/Graph-Easy-0.76/t/syntax/0063.txt
Normal file
16
perl/lib/Graph-Easy-0.76/t/syntax/0063.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
# Different node shapes
|
||||
|
||||
node { shape: ellipse; }
|
||||
node.lilac { background: #deadff; }
|
||||
|
||||
[ Bergheim ] { shape: diamond; } ->
|
||||
[ Kirchheim ] { shape: triangle; } ->
|
||||
[ Weilheim ] { shape: house; }
|
||||
|
||||
[ Wilhelmshaven ] { shape: invisible; } ->
|
||||
[ Cuxhaven ] { shape: rounded; } ->
|
||||
[ Zeven ] { class: lilac; }
|
||||
|
||||
[ Bremerhaven ] { shape: circle; } ->
|
||||
[ Templin ] { shape: triangle; }
|
||||
|
||||
5
perl/lib/Graph-Easy-0.76/t/syntax/0070.txt
Normal file
5
perl/lib/Graph-Easy-0.76/t/syntax/0070.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# nodes in a subclass with attributes
|
||||
node.city { color: brown; } # override default color
|
||||
|
||||
[ Bonn ] { class: city; } -> [ Berlin ] { class: city; }
|
||||
[ Berlin ] -> [ Kassel ]
|
||||
5
perl/lib/Graph-Easy-0.76/t/syntax/0080.txt
Normal file
5
perl/lib/Graph-Easy-0.76/t/syntax/0080.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
node.city { color: brown; }
|
||||
[ Bonn ], [ Berlin ], [ Kassel ] { class: city; }
|
||||
|
||||
[ Bonn ] -> [ Berlin ]
|
||||
[ Kassel ] -> [ Berlin ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0090.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0090.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# a chain of nodes
|
||||
[ Bonn ] -> [ Berlin ] -> [ Wismar ]
|
||||
4
perl/lib/Graph-Easy-0.76/t/syntax/0100.txt
Normal file
4
perl/lib/Graph-Easy-0.76/t/syntax/0100.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# node lists on the left side
|
||||
[ Ulm ], [ Hahn ], [ Wismar ] => [ Frankfurt ]
|
||||
[ Frankfurt ] -> [ Potsdam ]
|
||||
[ Frankfurt ], [ Lahn ] -> [ Potsdam ]
|
||||
4
perl/lib/Graph-Easy-0.76/t/syntax/0102.txt
Normal file
4
perl/lib/Graph-Easy-0.76/t/syntax/0102.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
# node lists on both sides
|
||||
[ Ulm ], [ Hahn ], [ Wismar ] => [ Frankfurt ]
|
||||
[ Frankfurt ] => [ Stuttgart ], [ Trier ]
|
||||
[ Potsdam ], [ Cuixhaven ] => [ Bremerhaven ], [ Wismut ]
|
||||
10
perl/lib/Graph-Easy-0.76/t/syntax/0110.txt
Normal file
10
perl/lib/Graph-Easy-0.76/t/syntax/0110.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
[
|
||||
Bonn
|
||||
] ->
|
||||
[
|
||||
Berlin
|
||||
(Capital)
|
||||
]
|
||||
[
|
||||
Bonn
|
||||
] -> [ Wismar ]
|
||||
4
perl/lib/Graph-Easy-0.76/t/syntax/0120.txt
Normal file
4
perl/lib/Graph-Easy-0.76/t/syntax/0120.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
# [ Neustadt \[an der Weinstrasse\] ] ->
|
||||
# [ Neustadt \[b. Coburg\] ]
|
||||
|
||||
7
perl/lib/Graph-Easy-0.76/t/syntax/0130.txt
Normal file
7
perl/lib/Graph-Easy-0.76/t/syntax/0130.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# all nodes in one group
|
||||
|
||||
( German Cities
|
||||
[ Cuxhaven ] -> [ Bremen ]
|
||||
[ Hamburg ], [ Flensburg ]
|
||||
)
|
||||
|
||||
21
perl/lib/Graph-Easy-0.76/t/syntax/0131.txt
Normal file
21
perl/lib/Graph-Easy-0.76/t/syntax/0131.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
# Three non-overlapping groups
|
||||
|
||||
group.nrw { fill: #ffa070; }
|
||||
group.sachsen { fill: #f07070; }
|
||||
|
||||
( Bayern
|
||||
[ Augsburg ]
|
||||
) { fill: #70b070; }
|
||||
|
||||
[ Augsburg ] --> [ Dortmund ]
|
||||
|
||||
( Nordrhein-Westfalen
|
||||
[ Dortmund ] -> [ Olpe ]
|
||||
--> [ Hamm ]
|
||||
) { class: nrw; }
|
||||
|
||||
( Sachsen
|
||||
[ Leipzig ]
|
||||
) { class: sachsen }
|
||||
|
||||
[ Hamm ] --> [ Leipzig ]
|
||||
7
perl/lib/Graph-Easy-0.76/t/syntax/0140.txt
Normal file
7
perl/lib/Graph-Easy-0.76/t/syntax/0140.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# some nodes in a group, and one edge coming in
|
||||
|
||||
( German Cities
|
||||
[ Augsburg ] -> [ Hof ]
|
||||
)
|
||||
[ Wien ] -> [ Augsburg ]
|
||||
|
||||
5
perl/lib/Graph-Easy-0.76/t/syntax/0150.txt
Normal file
5
perl/lib/Graph-Easy-0.76/t/syntax/0150.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
( German Cities
|
||||
[ Augsburg ] -> [ Hof ]
|
||||
)
|
||||
[ Wien ] -> [ German Cities ]
|
||||
|
||||
4
perl/lib/Graph-Easy-0.76/t/syntax/0160.txt
Normal file
4
perl/lib/Graph-Easy-0.76/t/syntax/0160.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
[ Terminal \#1 ] -> [ Terminal \#2 ]
|
||||
[ Terminal ( \#3 ) \|-\| ]
|
||||
[ Neustadt & Neudorf ] -> [ 3 < 4 ]
|
||||
|
||||
5
perl/lib/Graph-Easy-0.76/t/syntax/0170.txt
Normal file
5
perl/lib/Graph-Easy-0.76/t/syntax/0170.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
# Edges can have labels, too:
|
||||
[ Kempten ] -- Bahn --> [ Schongau ] # normal edge
|
||||
[ Schongau ] -- Fahrrad --> [ Regensburg ] # ditto
|
||||
[ Regensburg ] .. Auto ..> [ Roth ] # dashed
|
||||
[ Regensburg ] == Motorradkolonne ==> [ Straubing ] # double
|
||||
17
perl/lib/Graph-Easy-0.76/t/syntax/0171.txt
Normal file
17
perl/lib/Graph-Easy-0.76/t/syntax/0171.txt
Normal file
@@ -0,0 +1,17 @@
|
||||
# edges with attributes like title/link/label
|
||||
# set the base link
|
||||
graph { linkbase: http%3a//de.wikipedia.org/wiki/; }
|
||||
# if nothing specified, generate a link from the label
|
||||
# or none if no label set
|
||||
edge { autolink: label; }
|
||||
# these edges always link to "Intercity" regardless of the label
|
||||
edge.intercity { link: Intercity; }
|
||||
|
||||
# autolinks the edge to "Auto"
|
||||
[ Emden ] - Auto -> [ Schortens ]
|
||||
# autolinks this edge to "Bahn"
|
||||
[ Schortens ] --> { label: Bahn; } [ Oldenburg ]
|
||||
# no link (since no label)
|
||||
[ Schortens ] --> [ Cuxhaven ]
|
||||
# links to "Intercity"
|
||||
[ Oldenburg ] - IC -> { class: intercity; } [ Bremerhaven ]
|
||||
7
perl/lib/Graph-Easy-0.76/t/syntax/0180.txt
Normal file
7
perl/lib/Graph-Easy-0.76/t/syntax/0180.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
# inserted newlines
|
||||
[
|
||||
Kempten
|
||||
] ->
|
||||
[
|
||||
Schongau
|
||||
] # normal edge
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0190.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0190.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# no spaces
|
||||
[Kempten]{color:red;}->[Thurgau]{color:blue;}
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0200.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0200.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# quoting of () inside node
|
||||
[ Berlin ] -> [ Frankfurt \(Oder\) ]
|
||||
6
perl/lib/Graph-Easy-0.76/t/syntax/0210.txt
Normal file
6
perl/lib/Graph-Easy-0.76/t/syntax/0210.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
# gid, "long" edge, comments and color codes
|
||||
graph { gid: 123; color: #308030 }
|
||||
node { color: #f06020 } #this is a comment
|
||||
node.cities { color: #1460b0; fill: lightgrey; } # this too
|
||||
|
||||
[ Leipzig ] { class: cities } ----> [ Oschatz ] # comment
|
||||
6
perl/lib/Graph-Easy-0.76/t/syntax/0220.txt
Normal file
6
perl/lib/Graph-Easy-0.76/t/syntax/0220.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
# different chains of nodes
|
||||
[ Ulm ] -> [ Lahn ] -> [ Bonn ]
|
||||
-> [ Trier ]
|
||||
[ Stein ] -> [ Wahns ]
|
||||
-> [ Lind ]
|
||||
-> [ Burg ] -> [ Buch ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0230.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0230.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# Something that follows on the same line
|
||||
[ Ulm ] -> [ Lahn ] [ Lahn ] -> [ Trier ]
|
||||
16
perl/lib/Graph-Easy-0.76/t/syntax/0240.txt
Normal file
16
perl/lib/Graph-Easy-0.76/t/syntax/0240.txt
Normal file
@@ -0,0 +1,16 @@
|
||||
# Clickable links and mouse-over titles:
|
||||
graph { linkbase: http://de.wikipedia.org/wiki/ }
|
||||
node { autolink: label; autotitle: label; }
|
||||
|
||||
[ Bonn ]
|
||||
[ Berlin ] { title: "Berlin (Capital)" }
|
||||
[ Kassel ] { autolink: none; }
|
||||
[ Ulm ] { link: "Stuttgart"; }
|
||||
[ Lahn ] { label: Ulm; }
|
||||
|
||||
# link link, title overriden only title
|
||||
[ Bonn ] -> [ Berlin ] -> [ Kassel ]
|
||||
# link overriden
|
||||
[ Bonn ] -> [ Ulm ]
|
||||
# link goes to "Ulm" (label!)
|
||||
[ Ulm ] -> [ Lahn ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0250.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0250.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# A node-cluster (autosplit into three single nodes)
|
||||
[ Waren | Mirow | Bergen ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0251.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0251.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# A node-cluster (autosplit into three single nodes)
|
||||
[ Husum | Schleswig | Flensburg ] { fill: #ddaaff; }
|
||||
3
perl/lib/Graph-Easy-0.76/t/syntax/0252.txt
Normal file
3
perl/lib/Graph-Easy-0.76/t/syntax/0252.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
# A node-cluster (autosplit into three single nodes)
|
||||
[ Amrum | Sylt | Fehmarn ] { fill: #ddaaff; }
|
||||
-> [ Itzehoe ]
|
||||
2
perl/lib/Graph-Easy-0.76/t/syntax/0254.txt
Normal file
2
perl/lib/Graph-Easy-0.76/t/syntax/0254.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
# A node-cluster (autosplit into three single nodes)
|
||||
[ Waren | Mirow | Bergen \| ]
|
||||
Reference in New Issue
Block a user