The Plasmo Graph
A PlasmoGraph wraps a LightGraphs.jl Graph (or DiGraph) and adds additional attributes for managing subgraphs and models. These are all of the graph functions a user might use in plasmo. Most core functions from LightGraphs.jl have been dispatched.
Graph Functions
#
Plasmo.PlasmoGraph
— Type.
The PlasmoGraph Type. Contains a reference to a LightGraphs.Graph
#
Base.getindex
— Method.
getindex(:PlasmoGraph) Get the index of a subgraph within EACH of its graphs. Returns 0 if the graph is not a subgraph.
#
Base.getindex
— Method.
getindex(::PlasmoGraph,::NodeOrEdge) Get the index of a node or edge within a PlasmoGraph
#
Base.getindex
— Method.
getindex(::PlasmoGraph,::NodeOrEdge) Return a dictionary of a node's or edge's index in each of its graphs.