When.com Web Search

Search results

  1. Results From The WOW.Com Content Network
  2. Longest path problem - Wikipedia

    en.wikipedia.org/wiki/Longest_path_problem

    For a DAG, the longest path from a source vertex to all other vertices can be obtained by running the shortest-path algorithm on −G. Similarly, for each vertex v in a given DAG, the length of the longest path ending at v may be obtained by the following steps: Find a topological ordering of the given DAG.

  3. Directed acyclic graph - Wikipedia

    en.wikipedia.org/wiki/Directed_acyclic_graph

    Each such edge is labeled with an estimate for the amount of time that it will take a team of workers to perform the task. The longest path in this DAG represents the critical path of the project, the one that controls the total time for the project. Individual milestones can be scheduled according to the lengths of the longest paths ending at ...

  4. Topological sorting - Wikipedia

    en.wikipedia.org/wiki/Topological_sorting

    The resulting matrix describes the longest path distances in the graph. Sorting the vertices by the lengths of their longest incoming paths produces a topological ordering. [6] An algorithm for parallel topological sorting on distributed memory machines parallelizes the algorithm of Kahn for a DAG = (,). [7]

  5. Glossary of graph theory - Wikipedia

    en.wikipedia.org/wiki/Glossary_of_graph_theory

    In an unweighted graph, the length of a cycle, path, or walk is the number of edges it uses. In a weighted graph, it may instead be the sum of the weights of the edges that it uses. Length is used to define the shortest path, girth (shortest cycle length), and longest path between two vertices in a graph. level 1.

  6. Acyclic orientation - Wikipedia

    en.wikipedia.org/wiki/Acyclic_orientation

    The chromatic number of any graph equals one more than the length of the longest path in an acyclic orientation chosen to minimize this path length. Acyclic orientations are also related to colorings through the chromatic polynomial , which counts both acyclic orientations and colorings.

  7. Lowest common ancestor - Wikipedia

    en.wikipedia.org/wiki/Lowest_common_ancestor

    In this tree, the lowest common ancestor of the nodes x and y is marked in dark green. Other common ancestors are shown in light green. In graph theory and computer science, the lowest common ancestor (LCA) (also called least common ancestor) of two nodes v and w in a tree or directed acyclic graph (DAG) T is the lowest (i.e. deepest) node that has both v and w as descendants, where we define ...

  8. Gallai–Hasse–Roy–Vitaver theorem - Wikipedia

    en.wikipedia.org/wiki/Gallai–Hasse–Roy...

    A bipartite graph may be oriented from one side of the bipartition to the other. The longest path in this orientation has length one, with only two vertices. Conversely, if a graph is oriented without any three-vertex paths, then every vertex must either be a source (with no incoming edges) or a sink (with no outgoing edges) and the partition of the vertices into sources and sinks shows that ...

  9. Pathwidth - Wikipedia

    en.wikipedia.org/wiki/Pathwidth

    A k-path is a k-tree with at most two k-leaves, and a k-caterpillar is a k-tree that can be partitioned into a k-path and a set of k-leaves each adjacent to a separator k-clique of the k-path. In particular the maximal graphs of pathwidth one are exactly the caterpillar trees .