Files
ortools-clone/ortools/graph
Laurent Perron cf443ba5f1 c++ annotations
2023-12-19 15:02:40 +01:00
..
2023-05-30 14:49:13 +02:00
2023-12-18 13:59:59 +01:00
2023-08-21 09:04:57 +02:00
2023-12-18 13:59:59 +01:00
2023-06-30 12:00:58 +02:00
2023-08-30 10:04:47 -04:00
2023-11-21 11:57:12 +01:00
2023-07-05 18:34:44 +02:00
2023-08-18 16:14:58 +02:00
2023-11-29 11:43:05 +01:00
2023-11-17 14:15:51 +01:00
2023-01-25 18:35:46 +01:00
2023-07-05 18:34:44 +02:00
2023-08-30 10:04:47 -04:00
2023-07-05 18:34:44 +02:00
2023-12-19 15:02:40 +01:00
2023-08-18 16:14:58 +02:00
2023-06-30 12:00:58 +02:00
2023-08-30 10:04:47 -04:00
2023-05-06 09:00:40 +02:00
2023-08-30 10:04:47 -04:00
2023-08-30 10:04:47 -04:00
2023-08-18 16:14:58 +02:00
2023-04-05 10:36:56 +02:00
2023-12-08 14:28:53 +01:00
2023-11-17 14:15:51 +01:00
2023-11-17 14:15:51 +01:00
2023-11-17 14:15:51 +01:00
2023-06-30 12:00:58 +02:00
2023-08-30 10:04:47 -04:00
2023-09-23 10:16:23 +02:00
2023-10-16 15:36:24 +02:00

Graph and Network Flows

This directory contains data structures and algorithms for graph and network flow problems.

It contains in particular:

  • well-tuned algorithms (for example shortest, paths and Hamiltonian paths).
  • hard-to-find algorithms (Hamiltonian paths, push-relabel flow algorithms).
  • other, more common algorithm, that are useful to use with EbertGraph.

Graph representations:

Paths:

Graph decompositions:

  • connected_components.h: entry point for computing connected components in an undirected graph. (It does not need ebert_graph.h or digraph.h.)

  • strongly_connected_components.h: entry point for computing the strongly connected components of a directed graph.

  • cliques.h: entry point for computing maximum cliques and clique covers in a directed graph, based on the Bron-Kerbosch algorithm. (It does not need ebert_graph.h or digraph.h.)

Flow algorithms:

  • linear_assignment.h: entry point for solving linear sum assignment problems (classical assignment problems where the total cost is the sum of the costs of each arc used) on directed graphs with arc costs, based on the Goldberg-Kennedy push-relabel algorithm.

  • max_flow.h: entry point for computing maximum flows on directed graphs with arc capacities, based on the Goldberg-Tarjan push-relabel algorithm.

  • min_cost_flow.h: entry point for computing minimum-cost flows on directed graphs with arc capacities, arc costs, and supplies/demands at nodes, based on the Goldberg-Tarjan push-relabel algorithm.

Wrappers

  • python: the SWIG code that makes the wrapper available in Python and its unit tests.

  • java: the SWIG code that makes the wrapper available in Java and its unit tests.

  • csharp: the SWIG code that makes the wrapper available in C# and its unit tests.

Samples

You can find some canonical examples in samples