Baseclasses
Definition
The LongestPathRanking module computes the following ranking of a graph G = (V, E):
First, a feedback set
R E is computed, that is, the graph
G' resulting from G by reversing all the edges in R is acyclic.
In this step, self-loops are simply ignored. For this purpose, we use
a subgraph module that computes a maximal acyclic subgraph (that also
implies a feedback set R). Then, we compute a ranking satisfying
General Information
Algorithm | |
name | Longest-Path Ranking |
long name | Longest-Path Ranking |
author |
Implementation | |
author | C. Gutwenger |
date | May 1998 |
version | 1.0 |
Pre- and Postcondition
precondition | = | { directed } |
postcondition(PRE) | = | ![]() |
Exchangeable Modules Instances of type LongestPathRanking provide the following module options:
guaranteed precondition: | {directed} |
required postcondition: |
![]() |
initial module: | LEDAMakeAcyclic |
Optional Parameters Instances of LongestPathRanking provide the following optional parameters:
#include < AGD/LongestPathRanking.h >
Creation
LongestPathRanking | R(bool sdl = true) | creates an instance R of type LongestPathRanking. Sets the option separate_deg0_layer to sdl. |
Operations
Standard Interface (Inherited Methods) The detailed description of these methods can be found in the manual entries of the base class (RankAssignment).
bool | R.check(const leda_graph& G, AgdKey& p) | |
void | R.call(const leda_graph& G, leda_node_array<int>& rank) |
Access to Options
bool | R.set_subgraph(const SubgraphModule& M) | |
bool | R.separate_deg0_layer() | |
void | R.separate_deg0_layer(bool sdl) |
Implementation
The computation of the ranking takes time
(| V| + | E|).
© Copyright 1998-2001, Algorithmic Solutions Software GmbH. All rights reserved.
2001-08-13