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.PlasmoGraphType.

The PlasmoGraph Type. Contains a reference to a LightGraphs.Graph

# Base.getindexMethod.

getindex(:PlasmoGraph)

Get the index of a subgraph within EACH of its graphs.  Returns 0 if the graph is not a subgraph.

# Base.getindexMethod.

getindex(::PlasmoGraph,::NodeOrEdge)
Get the index of a node or edge within a PlasmoGraph

# Base.getindexMethod.

getindex(::PlasmoGraph,::NodeOrEdge)
Return a dictionary of a node's or edge's index in each of its graphs.