No description
Find a file
Eric Lee 566b777fcc Squashed commit of the following:
commit bcbc14c9ff5ebff1a91ce304c5e5e06b38fef3e5
Author: Eric Lee <erhlee.bird@gmail.com>
Date:   Wed Aug 28 20:09:37 2019 -0400

    add inductive graph implementation
2019-08-28 20:11:02 -04:00
docs Squashed commit of the following: 2019-08-28 20:11:02 -04:00
src Squashed commit of the following: 2019-08-28 20:11:02 -04:00
tests Squashed commit of the following: 2019-08-28 20:11:02 -04:00
.gitignore Initial Commit 2018-02-02 21:16:33 -08:00
LICENSE Create LICENSE 2018-02-02 22:42:39 -08:00
README.md README 2018-02-02 22:31:46 -08:00
simple_graph.nimble Initial Commit 2018-02-02 21:16:33 -08:00

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)