mirror of
https://github.com/erhlee-bird/simple_graph
synced 2026-01-03 09:24:50 +00:00
No description
commit bcbc14c9ff5ebff1a91ce304c5e5e06b38fef3e5
Author: Eric Lee <erhlee.bird@gmail.com>
Date: Wed Aug 28 20:09:37 2019 -0400
add inductive graph implementation
|
||
|---|---|---|
| docs | ||
| src | ||
| tests | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
| simple_graph.nimble | ||
Simple Graph
Quick and easy graph data structure library for Nim.
Examples
import simple_graph
var G: DirectedGraph[char] = DirectedGraph[char]()
G.initGraph()
G.addNode('a')
G.addNode('b')
G.addNode('c')
G.addEdge('a', 'b')
G.delNode('b')
for node in G.nodes():
echo($node)