Skip to content

Digraph viewer provides a visual representation of a digraph model through a web based interface

License

Notifications You must be signed in to change notification settings

fnchooft/digraph_viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Digraph Viewer

Digraph viewer provides a visual representation of an erlang digraph through a web based interface.

digraph_viewer screen grab

Installation

Head over to hex to find the latest version to install.

Once installed make sure to add digraph_viewer to your list of applications (or start it manually).

%% erlang
%% ---------
%% your_app.app.src
%% ---------
...
{applications, [digraph_viewer]}
...
# elixir]
# ---------
# mix.exs
# ---------

def application do
  [applications: [:digraph_viewer]]
end

Usage

Before the digraph can be viewed it must be registered with digraph_viewer.

%% erlang
application:start(digraph_viewer).
G = digraph:new().
digraph:add_vertex(G,friendA,[{age,42}]).
digraph:add_vertex(G,friendB,[{age,30}]).
digraph:add_edge(G,friendA,friendB,[{since,2014}]).
digraph_viewer:register(G).
# elixir
g = :digraph.new()
:digraph_viewer.register(g)

You can now view the digraph by visiting http://localhost:8080/.

About

Digraph viewer provides a visual representation of a digraph model through a web based interface

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Erlang 61.0%
  • JavaScript 24.9%
  • HTML 12.0%
  • CSS 2.1%