diff --git a/docs/conf.py b/docs/conf.py index 34e19ff..b314901 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,7 +5,7 @@ # sys.path.insert(0,os.path.abspath("../examples")) sys.path.insert(0,os.path.abspath("../netsci")) -sys.path.insert(0, os.path.abspath(".")) +sys.path.insert(0, os.path.abspath("../examples/")) needs_sphinx = '1.3' diff --git a/docs/quick_start.py b/examples/quick_start.py similarity index 85% rename from docs/quick_start.py rename to examples/quick_start.py index 7d0259e..a42a10b 100644 --- a/docs/quick_start.py +++ b/examples/quick_start.py @@ -2,27 +2,27 @@ First import the necessary libraries: -.. literalinclude:: quick_start.py +.. literalinclude:: ../examples/quick_start.py :start-after: example-st\u0061rt :lines: 1-4 :dedent: 0 Next, create a simple graph with self-avoiding edges (SAE) between nodes. -.. literalinclude:: quick_start.py +.. literalinclude:: ../examples/quick_start.py :start-after: example-st\u0061rt :lines: 6-8 Now, find all self-avoiding paths from a given start node to a target node. -.. literalinclude:: quick_start.py +.. literalinclude:: ../examples/quick_start.py :start-after: example-st\u0061rt :lines: 11-16 Finally, visualize the graph. -.. literalinclude:: quick_start.py +.. literalinclude:: ../examples/quick_start.py :start-after: example-st\u0061rt :lines: 18