![]() |
PathsTraversal
use PathsTraversal;
use PathsTraversal qw(:all);
PathsTraversal class provides the following methods:
new, Copy, GetConnectedComponentsVertices, GetPaths, GetVertices , GetVerticesDepth, GetVerticesNeighborhoods, GetVerticesPredecessors , GetVerticesRoots, PerformAllPathsSearch, PerformAllPathsSearchWithLengthUpto , PerformBreadthFirstSearch, PerformBreadthFirstSearchWithLimit , PerformDepthFirstSearch, PerformDepthFirstSearchWithLimit , PerformNeighborhoodVerticesSearch , PerformNeighborhoodVerticesSearchWithRadiusUpto, PerformPathsSearch , PerformPathsSearchBetween, PerformPathsSearchWithLengthUpto, StringifyPaths , StringifyPathsTraversal, StringifyVerticesDepth, StringifyVerticesNeighborhoods , StringifyVerticesPredecessors, StringifyVerticesRoots , StringifyVerticesSuccessors
Using specified Graph, new method creates a new PathsTraversal object and returns newly created PathsTraversal object
Copies PathsTraversal and its associated data using Storable::dclone and returns a new PathsTraversal object
Returns an array of Components containing references to arrays of vertex IDs corresponding to connected components of graph after a search. In scalar context, the number of connected components is returned.
Connected Components is sorted in descending order of number of vertices in each connected component.
Returns an array of Paths containing references to arrays of vertex IDs corresponding to to paths traversed in a graph after a search. In scalar context, number of paths is returned.
Paths array is sorted in ascending order of path lengths.
Returns an array containing an ordered list of vertex IDs traversed during a search. In scalar context, the number of vertices is returned.
Returns a hash VerticesDepth containing vertex ID and depth from root vertex as a key and value pair for all vertices traversed during a search.
Returns an array VerticesNeighborhoods containing references to arrays corresponding to vertices collected at various neighborhood radii around a specified vertex during a vertex neighborhood search. In scalar context, the number of neighborhoods is returned.
Returns a hash VerticesPredecessors containing vertex ID and predecessor vertex ID as key and value pair for all vertices traversed during a search
Returns a hash VerticesPredecessors containing vertex ID and root vertex ID as a key and value pair for all vertices traversed during a search
Searches all paths starting from a StartVertexID with sharing of edges in paths traversed and returns PathsTraversal.
By default, cycles are included in paths. A path containing a cycle is terminated at a vertex completing the cycle.
Searches all paths starting from StartVertexID of length upto a Length with sharing of edges in paths traversed and returns PathsTraversal.
By default, cycles are included in paths. A path containing a cycle is terminated at a vertex completing the cycle.
Performs Breadth First Search (BFS) and returns PathsTraversal
Performs BFS with depth up to DepthLimit starting at RootVertexID and returns PathsTraversal. By default, root vertex ID corresponds to an arbitrary vertex
Performs Depth First Search (DFS) and returns PathsTraversal
Performs DFS with depth up to DepthLimit starting at RootVertexID and returns PathsTraversal. By default, root vertex ID corresponds to an arbitrary vertex.
Searches vertices around StartVertexID at all neighborhood radii and returns PathsTraversal
Searches vertices around StartVertexID with neighborhood radus up to Radius and returns PathsTraversal
Searches paths starting from StartVertexID with no sharing of edges in paths traversed and returns PathsTraversal.
By default, cycles are included in paths. A path containing a cycle is terminated at a vertex completing the cycle.
Searches paths between StartVertexID and EndVertexID and returns PathsTraversal
Searches paths starting from StartVertexID with length upto Length with no sharing of edges in paths traversed and returns PathsTraversal.
By default, cycles are included in paths. A path containing a cycle is terminated at a vertex completing the cycle.
Returns a string containing information about traversed paths in PathsTraversal object
Returns a string containing information about PathsTraversal object
Returns a string containing information about depth of vertices found during search by PathsTraversal object
Returns a string containing information about neighborhoods of vertices found during search by PathsTraversal object
Returns a string containing information about predecessors of vertices found during search by PathsTraversal object
Returns a string containing information about roots of vertices found during search by PathsTraversal object
Returns a string containing information about successors of vertices found during search by PathsTraversal object
Copyright (C) 2004-2008 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.