|
graph_analysis
|
Representing of an edge in a multicommodity flow problem. More...
#include <MultiCommodityEdge.hpp>


Public Types | |
| typedef shared_ptr< MultiCommodityEdge > | Ptr |
| typedef std::set< uint32_t > | CommoditySet |
| typedef std::map< CommoditySet, uint32_t > | SubCapacityUpperBounds |
Public Types inherited from graph_analysis::Edge | |
| typedef shared_ptr< Edge > | Ptr |
| typedef shared_ptr< const Edge > | ConstPtr |
| typedef std::vector< Ptr > | PtrList |
| typedef std::set< Ptr > | PtrSet |
Public Types inherited from graph_analysis::GraphElement | |
| typedef shared_ptr< GraphElement > | Ptr |
| typedef weak_ptr< GraphElement > | WeakPtr |
| typedef std::vector< Ptr > | PtrList |
Public Member Functions | |
| MultiCommodityEdge (const std::string &label="") | |
| MultiCommodityEdge (uint32_t commodities, const std::string &label="") | |
| virtual | ~MultiCommodityEdge () |
| virtual std::string | getClassName () const |
| virtual std::string | toString () const |
| void | setCapacityUpperBound (uint32_t capacity) |
| uint32_t | getCapacityUpperBound () const |
| void | setCommodityCapacityUpperBound (uint32_t commodity, uint32_t capacity) |
| uint32_t | getCommodityCapacityUpperBound (uint32_t commodity) const |
| void | setCommodityCost (uint32_t commodity, double cost) |
| double | getCommodityCost (uint32_t commodity) |
| void | setCommodityFlow (uint32_t commodity, uint32_t flow) |
| void | setSubCapacityUpperBound (const CommoditySet &commodities, uint32_t flow) |
| const SubCapacityUpperBounds & | getSubCapacityBounds () const |
| uint32_t | getCommodityFlow (uint32_t commodity) const |
| size_t | numberOfCommodities () const |
| virtual void | registerAttributes (EdgeTypeManager *) const |
Public Member Functions inherited from graph_analysis::Edge | |
| Edge (const std::string &label=std::string()) | |
| Edge (const Vertex::Ptr &source, const Vertex::Ptr &target, const std::string &label=std::string()) | |
| virtual | ~Edge () |
| Edge::Ptr | clone () const |
| virtual std::string | toString (uint32_t indent) const |
| Vertex::Ptr | getSourceVertex () const |
| Vertex::Ptr | getTargetVertex () const |
| void | setSourceVertex (const Vertex::Ptr &source) |
| void | setTargetVertex (const Vertex::Ptr &target) |
| Edge::Ptr | getSharedPointerFromGraph (const shared_ptr< BaseGraph > &pGraph) const |
| Edge::Ptr | getPtr () |
| Edge::ConstPtr | getPtr () const |
Public Member Functions inherited from graph_analysis::GraphElement | |
| GraphElement (const std::string &label=std::string()) | |
| Default constructor. More... | |
| virtual | ~GraphElement () |
| virtual void | setLabel (const std::string &label) |
| virtual const std::string & | getLabel () const |
| bool | associated (GraphId graph) const |
| void | associate (GraphId graph, GraphElementId elementId) |
| void | disassociate (GraphId graph) |
| GraphElementId | getId (GraphId graph) const |
| GraphElementUuid | getUid () const |
| GraphElementUuid | getUuid () const |
| GraphIdList | getGraphAssociations () const |
| std::string | toPrefixedString (GraphId graph) const |
Additional Inherited Members | |
Static Public Member Functions inherited from graph_analysis::Edge | |
| static std::vector< Vertex::Ptr > | getInvolvedVertices (const Edge::Ptr &e0, const Edge::Ptr &e1) |
| static bool | areMeeting (const Edge::Ptr &e0, const Edge::Ptr &e1) |
Static Public Member Functions inherited from graph_analysis::GraphElement | |
| static GraphElement::Ptr | fromUuid (const GraphElementUuid &uuid) |
Protected Member Functions inherited from graph_analysis::GraphElement | |
| GraphElement::Ptr | getSharedFromThis () |
| void | disassociateFromAll () |
| void | setUuid (const GraphElementUuid &uuid) |
| void | setUuid (const std::string &uuid) |
Protected Attributes inherited from graph_analysis::GraphElement | |
| GraphElementMap | mGraphElementMap |
| GraphElementUuid | mUuid |
| std::string | mLabel |
Static Protected Attributes inherited from graph_analysis::GraphElement | |
| static boost::uuids::random_generator | msUuidGenerator |
| static std::map< GraphElementUuid, function< GraphElement::Ptr()> > | msGraphElements |
Representing of an edge in a multicommodity flow problem.
| typedef std::set<uint32_t> graph_analysis::algorithms::MultiCommodityEdge::CommoditySet |
| typedef shared_ptr<MultiCommodityEdge> graph_analysis::algorithms::MultiCommodityEdge::Ptr |
| typedef std::map<CommoditySet, uint32_t> graph_analysis::algorithms::MultiCommodityEdge::SubCapacityUpperBounds |
Flow limit for a number of commodities, e.g. to restrict transport of particular sets of commodites
| graph_analysis::algorithms::MultiCommodityEdge::MultiCommodityEdge | ( | const std::string & | label = "" | ) |
Default constructor to support serialization
| graph_analysis::algorithms::MultiCommodityEdge::MultiCommodityEdge | ( | uint32_t | commodities, |
| const std::string & | label = "" |
||
| ) |
Construct edge with a given number of commodities which can go through this edge
|
virtual |
Deconstructor
|
inline |
|
inlinevirtual |
The class name of this instance
Reimplemented from graph_analysis::Edge.
|
inline |
Get the commodity specific bound for this edge
| commodity | Index of the commodity |
|
inline |
Get the cost of the commodity with the given index
| commodity | Index of the commodity |
|
inline |
Get the assigned commodity flow
|
inline |
Get the existing flow limits
|
inline |
Get the number of commodities in this optimization instance
|
virtual |
Register attributes for serialization
Reimplemented from graph_analysis::Edge.
|
inline |
Set the general capacity bound for this edge sum of all flows on this edge cannot exceed this bound
| void graph_analysis::algorithms::MultiCommodityEdge::setCommodityCapacityUpperBound | ( | uint32_t | commodity, |
| uint32_t | capacity | ||
| ) |
Set the commodity specific bound for this edge, i.e. the flow of a commodity cannot exceed this bound across this edge
| commodity | Index of the commodity |
| capacity | Capacity limit for this commodity |
|
inline |
Set the cost for a particular commodity
| commodity | Index of the commodity |
| cost | Cost for this commodity |
|
inline |
Set the commodity flow (after a solution has been computed)
| commodity | Index of the commodity |
| flow | (Integral) flow of this commodity |
|
inline |
Set the commodity sub flow limit, i.e.
|
virtual |
Provide a string representation of this object
Reimplemented from graph_analysis::Edge.
1.8.13