Skip to content

Commit 5b49016

Browse files
committed
modify the example
1 parent c6871eb commit 5b49016

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

doc/ordering/pgr_sloanOrdering.rst

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,32 +87,14 @@ Column Type Description
8787

8888
Additional Examples
8989

90-
:Example: Sloan ordering Original graph from Boost example (vertices 0-9).
90+
:Example: Sloan ordering of Original graph from Boost example (vertices 0-9).
9191

9292
..graphviz::
9393

9494
graph G{
9595
node[shape=circle, style=filled, fillcolor=lightblue, color=black, fontcolor=black, fontsize=12];
9696
edge[color=black, penwidth=1.5];
9797

98-
subgraph {
99-
rank=same;
100-
8 [label="8(1)"];
101-
0 [label="0(2)"];
102-
3 [label="3(3)"];
103-
7 [label="7(4)"];
104-
5 [label="5(5)"];
105-
}
106-
107-
subgraph {
108-
rank=same;
109-
2 [label="2(6)"];
110-
4 [label="4(7)"];
111-
6 [label="6(8)"];
112-
1 [label="1(9)"];
113-
9 [label="9(10)"];
114-
}
115-
11698
0 -- 3;
11799
0 -- 5;
118100
1 -- 2;
@@ -128,8 +110,16 @@ subgraph {
128110
5 -- 7;
129111
6 -- 7;
130112

113+
{rank=same; 0; 8;}
114+
{rank=same; 3; 5; 7;}
115+
{rank=same; 2; 4; 6;}
116+
{rank=same; 1; 9;}
117+
131118
}
132119

120+
..literalinclude::sloanOrdering.queries
121+
:start-after: --q3
122+
:end-before: --q4
133123

134124

135125
See Also

0 commit comments

Comments
 (0)