Skip to content
/ gram Public

generic graphs in Nim 🕸

License

Notifications You must be signed in to change notification settings

disruptek/gram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gram

Test Matrix GitHub release (latest by date) Minimum supported Nim version License

Simple generic graphs

Goals

  • generic node and edge types
  • predictably fast performance
  • predictably mild memory behavior
  • predictably idiomatic API
  • hard to misuse

Installation

$ nimph clone disruptek/gram

or if you're still using Nimble like it's 2012,

$ nimble install https://github.com/disruptek/gram

Graphviz (dot) Output

For this, you'll need to install haxscramper's hmisc and hasts libraries; then you can import gram/graphviz to get the dotRepr and toPng procedures.

$ nimph clone hmisc
$ nimph clone hasts

Documentation

I'm going to try a little harder with these docs by using runnableExamples so the documentation demonstrates current usage examples and working tests despite the rapidly-evolving API.

See the documentation for the gram module as generated directly from the source.

License

MIT