C++ Reference

C++ Reference: Graph

CompleteBipartiteGraph< NodeIndexType, ArcIndexType >

Detailed Description

template<typename NodeIndexType = int32, typename ArcIndexType = int32>
class util::CompleteBipartiteGraph< NodeIndexType, ArcIndexType >

Definition at line 2247 of file graph.h.

Classes

class  OutgoingArcIterator
 

Public Types

typedef int32 NodeIndex
 
typedef int32 ArcIndex
 

Public Member Functions

 CompleteBipartiteGraph (NodeIndexType left_nodes, NodeIndexType right_nodes)
 
NodeIndexType Head (ArcIndexType arc) const
 
NodeIndexType Tail (ArcIndexType arc) const
 
ArcIndexType OutDegree (NodeIndexType node) const
 
IntegerRange< ArcIndexType > OutgoingArcs (NodeIndexType node) const
 
IntegerRange< ArcIndexType > OutgoingArcsStartingFrom (NodeIndexType node, ArcIndexType from) const
 
IntegerRange< NodeIndexType > operator[] (NodeIndexType node) const
 
int32 num_nodes () const
 
int32 num_arcs () const
 
IntegerRange< NodeIndexAllNodes () const
 
IntegerRange< ArcIndexAllForwardArcs () const
 
bool IsNodeValid (int32 node) const
 
bool IsArcValid (int32 arc) const
 
int32 node_capacity () const
 
int32 arc_capacity () const
 
virtual void ReserveNodes (int32 bound)
 
virtual void ReserveArcs (int32 bound)
 
void Reserve (int32 node_capacity, int32 arc_capacity)
 
void FreezeCapacities ()
 
void GroupForwardArcsByFunctor (const A &a, B *b)
 
int32 max_end_arc_index () const
 

Static Public Attributes

static const int32 kNilNode
 
static const int32 kNilArc
 

Protected Member Functions

void ComputeCumulativeSum (std::vector< int32 > *v)
 
void BuildStartAndForwardHead (SVector< int32 > *head, std::vector< int32 > *start, std::vector< int32 > *permutation)
 

Member Typedef Documentation

◆ ArcIndex

typedef int32 ArcIndex
inherited

Definition at line 190 of file graph.h.

◆ NodeIndex

typedef int32 NodeIndex
inherited

Definition at line 189 of file graph.h.

Constructor & Destructor Documentation

◆ CompleteBipartiteGraph()

CompleteBipartiteGraph ( NodeIndexType  left_nodes,
NodeIndexType  right_nodes 
)
inline

Definition at line 2261 of file graph.h.

Member Function Documentation

◆ AllForwardArcs()

IntegerRange< int32 > AllForwardArcs
inherited

Definition at line 210 of file graph.h.

◆ AllNodes()

IntegerRange< int32 > AllNodes
inherited

Definition at line 209 of file graph.h.

◆ arc_capacity()

int32 arc_capacity
inherited

Definition at line 227 of file graph.h.

◆ BuildStartAndForwardHead()

void BuildStartAndForwardHead ( SVector< int32 > *  head,
std::vector< int32 > *  start,
std::vector< int32 > *  permutation 
)
protectedinherited

Definition at line 272 of file graph.h.

◆ ComputeCumulativeSum()

void ComputeCumulativeSum ( std::vector< int32 > *  v)
protectedinherited

Definition at line 271 of file graph.h.

◆ FreezeCapacities()

void FreezeCapacities
inherited

Definition at line 254 of file graph.h.

◆ GroupForwardArcsByFunctor()

void GroupForwardArcsByFunctor ( const A &  a,
B *  b 
)
inlineinherited

Definition at line 264 of file graph.h.

◆ Head()

NodeIndexType Head ( ArcIndexType  arc) const

Definition at line 2300 of file graph.h.

◆ IsArcValid()

bool IsArcValid ( int32  arc) const
inlineinherited

Definition at line 219 of file graph.h.

◆ IsNodeValid()

bool IsNodeValid ( int32  node) const
inlineinherited

Definition at line 213 of file graph.h.

◆ max_end_arc_index()

int32 max_end_arc_index
inlineinherited

Definition at line 267 of file graph.h.

◆ node_capacity()

int32 node_capacity
inherited

Definition at line 224 of file graph.h.

◆ num_arcs()

int32 num_arcs
inlineinherited

Definition at line 204 of file graph.h.

◆ num_nodes()

int32 num_nodes
inlineinherited

Definition at line 201 of file graph.h.

◆ operator[]()

IntegerRange< NodeIndexType > operator[] ( NodeIndexType  node) const

Definition at line 2344 of file graph.h.

◆ OutDegree()

ArcIndexType OutDegree ( NodeIndexType  node) const

Definition at line 2314 of file graph.h.

◆ OutgoingArcs()

IntegerRange< ArcIndexType > OutgoingArcs ( NodeIndexType  node) const

Definition at line 2321 of file graph.h.

◆ OutgoingArcsStartingFrom()

IntegerRange< ArcIndexType > OutgoingArcsStartingFrom ( NodeIndexType  node,
ArcIndexType  from 
) const

Definition at line 2333 of file graph.h.

◆ Reserve()

void Reserve ( int32  node_capacity,
int32  arc_capacity 
)
inlineinherited

Definition at line 247 of file graph.h.

◆ ReserveArcs()

virtual void ReserveArcs ( int32  bound)
inlinevirtualinherited

Definition at line 241 of file graph.h.

◆ ReserveNodes()

virtual void ReserveNodes ( int32  bound)
inlinevirtualinherited

Definition at line 235 of file graph.h.

◆ Tail()

NodeIndexType Tail ( ArcIndexType  arc) const

Definition at line 2307 of file graph.h.

Member Data Documentation

◆ kNilArc

const int32 kNilArc
staticinherited

Definition at line 259 of file graph.h.

◆ kNilNode

const int32 kNilNode
staticinherited

Definition at line 258 of file graph.h.


The documentation for this class was generated from the following file: