C++ Reference: class DenseIntTopologicalSorterTpl
Note: This documentation is automatically generated.
Method | |
---|---|
AddEdge | Return type: Arguments: Performs in constant amortized time. Calling this will make all node indices in [0, max(from, to)] be valid node indices. |
AddNode | Return type: Arguments: Performs in constant amortized time. Calling this will make all node indices in [0 .. node_index] be valid node indices. If you can avoid using AddNode(), you should! If you know the number of nodes in advance, you should specify that at construction time -- it will be faster and use less memory. |
DenseIntTopologicalSorterTpl | For efficiency, it is best to specify how many nodes are required by using the next constructor. |
DenseIntTopologicalSorterTpl | Return type: Arguments: One may also construct a DenseIntTopologicalSorterTpl with a predefined number of empty nodes. One can thus bypass the AddNode() API, which may yield a lower memory usage. |
ExtractCycle | Return type: Arguments: To extract a cycle. When there is no cycle, cycle_nodes will be empty. |
GetCurrentFringeSize | Return type: |
GetNext | Return type: Arguments: Performs in O(average degree) in average. If a cycle is detected and "output_cycle_nodes" isn't NULL, it will require an additional O(number of edges + number of nodes in the graph) time. |
RemoveDuplicates | Return type: Arguments: Given a vector |
StartTraversal | Return type: |
TraversalStarted | Return type: |