Skip to content

v.depgraph #

fn new_dep_graph #

fn new_dep_graph() &DepGraph

fn new_ordered_dependency_map #

fn new_ordered_dependency_map() OrderedDepMap

fn show #

fn show(graph &DepGraph, path string)

fn (OrderedDepMap) set #

fn (mut o OrderedDepMap) set(name string, deps []string)

fn (OrderedDepMap) add #

fn (mut o OrderedDepMap) add(name string, deps []string)

fn (OrderedDepMap) get #

fn (o &OrderedDepMap) get(name string) []string

fn (OrderedDepMap) delete #

fn (mut o OrderedDepMap) delete(name string)

fn (OrderedDepMap) apply_diff #

fn (mut o OrderedDepMap) apply_diff(name string, deps []string)

fn (OrderedDepMap) size #

fn (o &OrderedDepMap) size() int

struct DepGraph #

struct DepGraph {
pub mut:
	acyclic bool
	nodes   []DepGraphNode
	values  map[string]i64
}

fn (DepGraph) add #

fn (mut graph DepGraph) add(mod string, deps []string)

fn (DepGraph) add_with_value #

fn (mut graph DepGraph) add_with_value(mod string, deps []string, value i64)

fn (DepGraph) resolve #

fn (graph &DepGraph) resolve() &DepGraph

fn (DepGraph) last_node #

fn (graph &DepGraph) last_node() DepGraphNode

fn (DepGraph) display #

fn (graph &DepGraph) display() string

fn (DepGraph) display_cycles #

fn (graph &DepGraph) display_cycles() string