Skip to main content
Google OR-Tools
  • Google OR-Tools
OR-Tools OR API
/
  • English
  • Deutsch
  • Español
  • Français
  • Indonesia
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어
  • OR-Tools
Installation Guides Reference Examples Support
Google OR-Tools
  • Google OR-Tools
  • OR-Tools
    • Installation
    • Guides
    • Reference
    • Examples
    • Support
  • OR API
  • OR-Tools Reference
    • Overview
    • C++ Reference
      • Overview
      • Algorithms
        • Overview
        • dense_doubly_linked_list
        • dynamic_partition
        • dynamic_permutation
        • find_graph_symmetries
        • hungarian
        • knapsack_solver
        • knapsack_solver_for_cuts
        • sparse_permutation
      • CP-SAT
        • Overview
        • all_different
        • boolean_problem
        • circuit
        • clause
        • cp_constraints
        • cp_model
        • cp_model_checker
        • cp_model_expand
        • cp_model_lns
        • cp_model_loader
        • cp_model_mapping
        • cp_model_objective
        • cp_model_postsolve
        • cp_model_presolve
        • cp_model_search
        • cp_model_solver
        • cp_model_symmetries
        • cp_model_utils
        • cumulative
        • cumulative_energy
        • cuts
        • diffn
        • diffn_util
        • disjunctive
        • drat_checker
        • drat_proof_handler
        • drat_writer
        • encoding
        • feasibility_pump
        • implied_bounds
        • inclusion
        • integer
        • integer_expr
        • integer_search
        • intervals
        • lb_tree_search
        • linear_constraint
        • linear_constraint_manager
        • linear_programming_constraint
        • linear_relaxation
        • lp_utils
        • max_hs
        • model
        • optimization
        • parameters_validation
        • pb_constraint
        • precedences
        • presolve_context
        • presolve_util
        • probing
        • pseudo_costs
        • restart
        • rins
        • sat_base
        • sat_decision
        • sat_inprocessing
        • sat_solver
        • scheduling_constraints
        • scheduling_cuts
        • simplification
        • subsolver
        • swig_helper
        • symmetry
        • symmetry_util
        • synchronization
        • table
        • theta_tree
        • timetable
        • timetable_edgefinding
        • util
        • var_domination
        • zero_half_cuts
      • Network Flow and Graph
        • Overview
        • assignment
        • christofides
        • cliques
        • connected_components
        • ebert_graph
        • eulerian_path
        • graph
        • graphs
        • hamiltonian_path
        • io
        • iterators
        • linear_assignment
        • max_flow
        • min_cost_flow
        • minimum_spanning_tree
        • one_tree_lower_bound
        • perfect_matching
        • shortestpaths
        • strongly_connected_components
        • topologicalsorter
        • util
      • Linear Solver
        • Overview
        • glop_utils
        • gurobi_proto_solver
        • linear_expr
        • linear_solver
        • linear_solver_callback
        • model_exporter
        • model_exporter_swig_helper
        • model_validator
        • pdlp_proto_solver
        • sat_proto_solver
        • sat_solver_utils
        • scip_callback
        • scip_helper_macros
        • scip_proto_solver
      • Routing
        • Overview
        • constraint_solver
        • constraint_solveri
        • routing
        • routing_filters
        • routing_flags
        • routing_index_manager
        • routing_lp_scheduling
        • routing_neighborhoods
        • routing_parameters
        • routing_search
        • routing_types
    • Python Reference
      • Overview
      • Algorithms
      • CP-SAT
      • Network Flow and Graph
      • Linear Solver
      • Routing
      • Domain Module
  • Home
  • Products
  • OR-Tools
  • Reference
Stay organized with collections Save and categorize content based on your preferences.

C++ Reference: graph

Note: This documentation is automatically generated.

Libraries

assignment
christofides
cliques
connected_components
ebert_graph
eulerian_path
graph
graphs
hamiltonian_path
io
iterators
linear_assignment
max_flow
min_cost_flow
minimum_spanning_tree
one_tree_lower_bound
perfect_matching
shortestpaths
strongly_connected_components
topologicalsorter
util

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-08-06 UTC.

  • Discussion forum Discussion forum
    Visit our forum
  • Discord Discord
    Join Google OR-Tools Discord server
  • GitHub GitHub
    Download our code
  • Stack Overflow Stack Overflow
    Ask questions using the or-tools or cp-sat tags
  • Programs

    • Google Developer Groups
    • Google Developer Experts
    • Accelerators
    • Women Techmakers
  • Developer consoles

    • Google API Console
    • Google Cloud Platform Console
    • Google Play Console
    • Firebase Console
    • Actions on Google Console
    • Cast SDK Developer Console
    • Chrome Web Store Dashboard
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • ICP证合字B2-20070004号
  • Manage cookies
  • Sign up for the Google Developers newsletter Subscribe
  • English
  • Deutsch
  • Español
  • Français
  • Indonesia
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어