From f22db1302d710fbf017108852991cd6ac538de17 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 21 Nov 2014 20:48:01 -0600 Subject: new dep graph working --- include/rebar.hrl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include') diff --git a/include/rebar.hrl b/include/rebar.hrl index af3f81c..794d738 100644 --- a/include/rebar.hrl +++ b/include/rebar.hrl @@ -27,3 +27,19 @@ -else. -type rebar_dict() :: dict(). -endif. + +-ifdef(namespaced_types). +-type rebar_digraph() :: digraph:graph(). +-else. +-type rebar_digraph() :: digraph(). +-endif. + +-define(GRAPH_VSN, 2). +-type v() :: {digraph:vertex(), term()} | 'false'. +-type e() :: {digraph:vertex(), digraph:vertex()}. +-type graph() :: {list(v()), list(e())}. +-record(graph, + { + vsn = ?GRAPH_VSN :: pos_integer(), + info = {[], []} :: graph() + }). -- cgit v1.1