IndexedGraph

A type representing undirected graphs.

IndexedGraphs.IndexedGraphType
IndexedGraph{T<:Integer} <: AbstractIndexedGraph{T}

A type representing a sparse undirected graph.

FIELDS

  • A – square adjacency matrix. A[i,j] == A[j,i] contains the unique index associated to unidrected edge (i,j)
source
IndexedGraphs.inedgesMethod
inedges(g::IndexedGraph, i::Integer)

Return a lazy iterators to the edges incident to i with i as the destination.

source
IndexedGraphs.outedgesMethod
outedges(g::IndexedGraph, i::Integer)

Return a lazy iterators to the edges incident to i with i as the source.

source
IndexedGraphs.get_edgeMethod
get_edge(g::IndexedGraph, src::Integer, dst::Integer)
get_edge(g::IndexedGraph, id::Integer)

Get edge given source and destination or given edge index.

source

Overrides from Graphs.jl

Graphs.edgesMethod
edges(g::IndexedGraph, i::Integer)

Return a lazy iterators to the edges incident to i.

By default unordered edges sort source and destination nodes in increasing order. See outedges and inedges if you need otherwise.

source