Skip to content

Commit

Permalink
docs quick start
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziaeemehr committed Aug 4, 2024
1 parent 5ae75a2 commit 63d7c4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
8 changes: 4 additions & 4 deletions docs/quick_start.py → examples/quick_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63d7c4c

Please sign in to comment.