Open
Graph Drawing
Framework

 v.2010.10
 

Public Member Functions

ogdf::AcyclicSubgraphModule Class Reference

Base class of algorithms for computing a maximal acyclic subgraph. More...

#include <ogdf/module/AcyclicSubgraphModule.h>

Inheritance diagram for ogdf::AcyclicSubgraphModule:
ogdf::DfsAcyclicSubgraph ogdf::GreedyCycleRemoval

List of all members.

Public Member Functions

 AcyclicSubgraphModule ()
 Initializes an acyclic subgraph module.
virtual ~AcyclicSubgraphModule ()
virtual void call (const Graph &G, List< edge > &arcSet)=0
 Computes the set of edges arcSet which have to be removed for obtaining an acyclic subgraph of G.
void operator() (const Graph &G, List< edge > &arcSet)
 Computes the set of edges arcSet which have to be removed for obtaining an acyclic subgraph of G.
void callAndReverse (Graph &G, List< edge > &reversed)
 Makes G acyclic by reversing edges.
void callAndReverse (Graph &G)
 Makes G acyclic by reversing edges.
void callAndDelete (Graph &G)
 Makes G acyclic by removing edges.
void * operator new (size_t nBytes)
void * operator new (size_t, void *p)
void operator delete (void *p, size_t nBytes)

Detailed Description

Base class of algorithms for computing a maximal acyclic subgraph.

See also:
SugiyamaLayout

Definition at line 70 of file AcyclicSubgraphModule.h.


Constructor & Destructor Documentation

ogdf::AcyclicSubgraphModule::AcyclicSubgraphModule (  )  [inline]

Initializes an acyclic subgraph module.

Definition at line 73 of file AcyclicSubgraphModule.h.

virtual ogdf::AcyclicSubgraphModule::~AcyclicSubgraphModule (  )  [inline, virtual]

Definition at line 76 of file AcyclicSubgraphModule.h.


Member Function Documentation

virtual void ogdf::AcyclicSubgraphModule::call ( const Graph G,
List< edge > &  arcSet 
) [pure virtual]

Computes the set of edges arcSet which have to be removed for obtaining an acyclic subgraph of G.

This is the actual algorithm call and must be implemented by derived classes.

Parameters:
G is the input graph.
arcSet is assigned the list of edges that have to be removed in G.

Implemented in ogdf::DfsAcyclicSubgraph, and ogdf::GreedyCycleRemoval.

void ogdf::AcyclicSubgraphModule::callAndDelete ( Graph G  ) 

Makes G acyclic by removing edges.

This method will also remove self-loops in the input graph G.

Parameters:
G is the input graph.
void ogdf::AcyclicSubgraphModule::callAndReverse ( Graph G  ) 

Makes G acyclic by reversing edges.

This method will ignore self-loops in the input graph G; thus self-loops are neither reversed nor removed. This is the simplified version of callAndDelete() that does not return the list of reversed edges.

Parameters:
G is the input graph.
void ogdf::AcyclicSubgraphModule::callAndReverse ( Graph G,
List< edge > &  reversed 
)

Makes G acyclic by reversing edges.

This method will ignore self-loops in the input graph G; thus self-loops are neither reversed or removed nor added to reversed.

Parameters:
G is the input graph.
reversed is assigned the list of edges that have been reversed in G.
void ogdf::AcyclicSubgraphModule::operator delete ( void *  p,
size_t  nBytes 
) [inline]

Definition at line 128 of file AcyclicSubgraphModule.h.

void* ogdf::AcyclicSubgraphModule::operator new ( size_t  ,
void *  p 
) [inline]

Definition at line 128 of file AcyclicSubgraphModule.h.

void* ogdf::AcyclicSubgraphModule::operator new ( size_t  nBytes  )  [inline]

Definition at line 128 of file AcyclicSubgraphModule.h.

void ogdf::AcyclicSubgraphModule::operator() ( const Graph G,
List< edge > &  arcSet 
) [inline]

Computes the set of edges arcSet which have to be removed for obtaining an acyclic subgraph of G.

Parameters:
G is the input graph.
arcSet is assigned the list of edges that have to be removed in G.

Definition at line 94 of file AcyclicSubgraphModule.h.


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