Table Of Contents

Graph define_edge_type


define_edge_type(self, label, src_vertex_label, dest_vertex_label, directed=False)

Define an edge type.

Parameters:

label : unicode

Label of the edge type.

src_vertex_label : unicode

The source “type” of vertices this edge connects.

dest_vertex_label : unicode

The destination “type” of vertices this edge connects.

directed : bool (default=False)

True if edges are directed, false if they are undirected.

Examples

See here for example usage in graph construction.