C# Class Clusterizator.Krab.GraphManager

Class representing graph of connected nodes.
Afficher le fichier Open project: intervals-mining-lab/libiada-core Class Usage Examples

Méthodes publiques

Свойство Type Description
Connections List
Elements List

Méthodes publiques

Méthode Description
Clone ( ) : GraphManager

Method creates copy of graph.

Connect ( int firstIndex, int secondIndex ) : void

Nodes connection method.

ConnectGraph ( ) : void

Method is connecting nodes into "shortest unclosed path" (snp).

Cut ( Connection connection ) : void

Removes given connection between given nodes. Also renumbers groups emerging as result of disconnection.

Cut ( GraphElement firstElement, GraphElement secondElement ) : void

Removes connection between given nodes. Also renumbers groups emerging as result of disconnection.

GetNextTaxonNumber ( ) : int

Calculates number of new group.

GraphManager ( List connections, List elements ) : System.Collections.Generic

Initializes a new instance of the GraphManager class.

SearchConnection ( GraphElement firstElement, GraphElement secondElement ) : int

Searches connection index for pair of nodes.

Private Methods

Méthode Description
Renumber ( int index, int newNumber ) : void

Recursive method for renumeration of connected graph nodes.

SearchConnection ( int index1, int index2 ) : int

Connection search by nodes indexes.

Method Details

Clone() public méthode

Method creates copy of graph.
public Clone ( ) : GraphManager
Résultat GraphManager

Connect() public méthode

Nodes connection method.
public Connect ( int firstIndex, int secondIndex ) : void
firstIndex int /// First node index. ///
secondIndex int /// Second node index. ///
Résultat void

ConnectGraph() public méthode

Method is connecting nodes into "shortest unclosed path" (snp).
public ConnectGraph ( ) : void
Résultat void

Cut() public méthode

Removes given connection between given nodes. Also renumbers groups emerging as result of disconnection.
public Cut ( Connection connection ) : void
connection Connection /// Connected nodes pair. ///
Résultat void

Cut() public méthode

Removes connection between given nodes. Also renumbers groups emerging as result of disconnection.
public Cut ( GraphElement firstElement, GraphElement secondElement ) : void
firstElement GraphElement /// First node. ///
secondElement GraphElement /// Second node. ///
Résultat void

GetNextTaxonNumber() public méthode

Calculates number of new group.
public GetNextTaxonNumber ( ) : int
Résultat int

GraphManager() public méthode

Initializes a new instance of the GraphManager class.
public GraphManager ( List connections, List elements ) : System.Collections.Generic
connections List /// The connections. ///
elements List /// The elements. ///
Résultat System.Collections.Generic

SearchConnection() public méthode

Searches connection index for pair of nodes.
public SearchConnection ( GraphElement firstElement, GraphElement secondElement ) : int
firstElement GraphElement /// First node. ///
secondElement GraphElement /// Second node. ///
Résultat int

Property Details

Connections public_oe property

Nodes connections in graph.
public List Connections
Résultat List

Elements public_oe property

Nodes of graph.
public List Elements
Résultat List