API
Index
Networks.EdgePersistence
Networks.SimpleNetwork
Networks.addedge!
Networks.addvertex!
Networks.all_edges
Networks.all_vertices
Networks.edge_incidents
Networks.edge_neighbors
Networks.edge_type
Networks.hasedge
Networks.hasvertex
Networks.link!
Networks.nedges
Networks.nvertices
Networks.rmedge!
Networks.rmvertex!
Networks.unlink!
Networks.vertex_incidents
Networks.vertex_neighbors
Networks.vertex_type
Reference
Networks.EdgePersistence
— TypeEdgePersistence
Trait for edge persitence in a Network
. It defines the behavior of edges when a vertex is removed. The following traits are defined:
PersistEdges
: edges are never removed implicitly.RemoveEdges
: edges are always removed implicitly.PruneEdges
(default): edges are removed if left stranded (i.e. no other vertex is linked with it).
Networks.SimpleNetwork
— TypeSimpleNetwork <: AbstractNetwork
A network represented as an adjacency list. It is the translation of SimpleGraph
from Graphs.jl to the Network
interface.
Networks.addedge!
— Functionaddedge!(graph, e)
Adds edge e
to the graph
.
Networks.addvertex!
— Functionaddvertex!(graph, v)
Adds vertex v
to the graph
.
Networks.all_edges
— Functionall_edges(graph)
Returns the edges in the graph
.
Networks.all_vertices
— Functionall_vertices(graph)
Returns the vertices in the graph
.
Networks.edge_incidents
— Functionedge_incidents(graph, e)
Returns the vertices connected by edge e
in graph
.
Networks.edge_neighbors
— Functionedge_neighbors(graph, e)
Returns the edges neighboring edge e
in the graph
.
Networks.edge_type
— Functionedge_type(graph)
Returns the type of edges in the graph
. Defaults to Any
.
Networks.hasedge
— Functionhasedge(graph, e)
Returns true
if edge e
exists in the graph
.
Networks.hasvertex
— Functionhasvertex(graph, v)
Returns true
if vertex v
exists in the graph
.
Networks.link!
— Functionlink!(graph, v, e)
Links vertex v
with edge e
in the graph
.
Networks.nedges
— Functionnedges(graph)
Returns the number of edges in the graph
.
Networks.nvertices
— Functionnvertices(graph)
Returns the number of vertices in the graph
.
Networks.rmedge!
— Functionrmedge!(graph, e)
Removes edge e
from the graph
.
Networks.rmvertex!
— Functionrmvertex!(graph, v)
Removes vertex v
from the graph
.
Networks.unlink!
— Functionunlink!(graph, v, e)
Unlinks vertex v
from edge e
in the graph
.
Networks.vertex_incidents
— Functionvertex_incidents(graph, v)
Returns the edges connected to vertex v
in graph
.
Networks.vertex_neighbors
— Functionvertex_neighbors(graph, v)
Returns the vertices neighboring vertex v
in the graph
.
Networks.vertex_type
— Functionvertex_type(graph)
Returns the type of vertices in the graph
. Defaults to Any
.