Submodules#
graph-tool is subdivided into the following submodules:
graph_tool- Graph
- GraphView
- Vertex
- Edge
- PropertyMap
- VertexPropertyMap
- EdgePropertyMap
- GraphPropertyMap
- PropertyArray
- VectorPropertyValue
- group_vector_property
- ungroup_vector_property
- map_property_values
- infect_vertex_property
- edge_endpoint_property
- incident_edges_op
- perfect_prop_hash
- value_types
- load_graph
- load_graph_from_csv
- openmp_enabled
- openmp_get_num_threads
- openmp_set_num_threads
- openmp_get_schedule
- openmp_set_schedule
- openmp_get_thresh
- openmp_set_thresh
- openmp_context
- seed_rng
- show_config
graph_tool.centrality- pagerank
- betweenness
- load_centrality
- percolation_centrality
- central_point_dominance
- closeness
- closeness_vitality
- eigenvector
- katz
- hits
- eigentrust
- trust_transitivity
- current_flow_betweenness
- current_flow_closeness
- effective_resistance
- communicability_betweenness
- laplacian_centrality
- second_order_centrality
- local_reaching_centrality
- global_reaching_centrality
- group_betweenness
- group_closeness
- group_degree
- prominent_group
- voterank
- birank
- burt_constraint
- burt_effective_size
- diversity
- dispersion
- convergence_degree
- trophic_levels
- trophic_incoherence
- kirchhoff_index
- kemeny_constant
- subgraph_centrality
- estrada_index
- communicability
- centralization
graph_tool.clusteringgraph_tool.collection- LCF_graph
- bull_graph
- chvatal_graph
- cubical_graph
- desargues_graph
- diamond_graph
- dodecahedral_graph
- frucht_graph
- heawood_graph
- hoffman_singleton_graph
- house_graph
- icosahedral_graph
- krackhardt_kite_graph
- moebius_kantor_graph
- octahedral_graph
- pappus_graph
- petersen_graph
- sedgewick_maze_graph
- tetrahedral_graph
- truncated_cube_graph
- truncated_tetrahedron_graph
- tutte_graph
graph_tool.correlationsgraph_tool.dynamics- DiscreteStateBase
- EpidemicStateBase
- SIState
- SISState
- SIRState
- SIRSState
- VoterState
- MajorityVoterState
- BinaryThresholdState
- GeneralizedBinaryState
- IsingGlauberState
- CIsingGlauberState
- IsingMetropolisState
- PottsGlauberState
- PottsMetropolisState
- AxelrodState
- BooleanState
- KirmanState
- NormalState
- LinearNormalState
- ContinuousStateBase
- LinearState
- LVState
- KuramotoState
- BPBaseState
- GenPottsBPState
- IsingBPState
- NormalBPState
graph_tool.draw- sfdp_layout
- hfd_layout
- fruchterman_reingold_layout
- arf_layout
- radial_tree_layout
- tree_layout
- layered_layout
- kamada_kawai_layout
- mds_layout
- stress_layout
- drl_layout
- umap_layout
- gursoy_atun_layout
- forceatlas2_layout
- graphopt_layout
- davidson_harel_layout
- lgl_layout
- gem_layout
- spectral_layout
- circle_layout
- star_layout
- shell_layout
- spiral_layout
- grid_layout
- sphere_layout
- planar_layout
- random_layout
- HFDState
- align_layout
- pack_layout
- graph_draw
- draw_hierarchy
- prop_to_size
- get_hierarchy_control_points
- cairo_draw
- interactive_window
- GraphWidget
- GraphWindow
- GraphArtist
graph_tool.flow- edmonds_karp_max_flow
- push_relabel_max_flow
- boykov_kolmogorov_max_flow
- minimum_st_cut
- minimum_cut
- min_cost_max_flow
- min_cost_flow
- vertex_connectivity
- edge_connectivity
- disjoint_paths
- gomory_hu_tree
- k_components
- all_minimum_st_cuts
- all_minimum_vertex_separators
- all_minimal_separators
- is_separator
- is_minimal_separator
- all_pairs_vertex_connectivity
- average_vertex_connectivity
- is_k_edge_connected
- label_bridge_components
- label_k_edge_components
- label_k_edge_subgraphs
- k_edge_augmentation
graph_tool.generation- random_graph
- random_rewire
- random_rewire_connected
- random_rewire_lattice
- is_graphical
- add_random_edges
- remove_random_edges
- generate_triadic_closure
- corrupt_graph
- price_network
- generate_chung_lu
- generate_static_fitness
- generate_static_power_law
- generate_kernel_graph
- generate_random_intersection
- generate_joint_degree
- is_joint_degree_graphical
- spectral_graph_forge
- generate_shell
- generate_cograph
- generate_tournament
- generate_k_lift
- generate_regular_expander
- generate_internet_as
- random_connected_graph
- generate_clustered_configuration
- generate_random_dot_product
- generate_sbm
- generate_maxent_sbm
- generate_lfr
- generate_watts_strogatz
- generate_forest_fire
- generate_s1
- generate_rmat
- realize_degree_sequence
- generate_erdos_renyi
- generate_plod
- generate_ssca
- solve_sbm_fugacities
- generate_planted_partition
- generate_relaxed_caveman
- generate_holme_kim
- generate_dual_ba
- generate_extended_ba
- generate_k_out
- generate_gn
- generate_gnr
- generate_gnc
- generate_directed_scale_free
- generate_establishment
- generate_growing_random
- generate_recent_degree
- generate_duplication_divergence
- generate_partial_duplication
- generate_preferential_aging
- generate_typed_citation
- generate_knn
- geometric_graph
- triangulation
- generate_geographical_threshold
- generate_waxman
- generate_soft_geometric
- generate_thresholded_geometric
- generate_navigable_small_world
- gabriel_graph
- relative_neighborhood_graph
- beta_skeleton
- generate_random_tree
- generate_random_forest
- generate_power_law_tree
- generate_lobster
- nonisomorphic_trees
- count_nonisomorphic_trees
- generate_bipartite_erdos_renyi
- generate_bipartite_configuration
- generate_bipartite_preferential
- realize_bipartite_degree_sequence
- predecessor_tree
- line_graph
- condensation_graph
- contract_parallel_edges
- remove_parallel_edges
- expand_parallel_edges
- label_parallel_edges
- remove_self_loops
- label_self_loops
- remove_labeled_edges
- graph_projection
- inverse_line_graph
- graph_power
- dedensify
- snap_aggregation
- mycielskian
- duplicate_vertices
- make_maximal_planar
- moral_graph
- graph_merge
- graph_union
- graph_difference
- graph_sym_difference
- graph_intersection
- graph_product
- graph_join
- graph_composition
- complement_graph
- named_graph
- lattice
- complete_graph
- circular_graph
- interval_graph
- visibility_graph
- degree_sequence_tree
- prufer_tree
graph_tool.inference- BlockState
- WeightedBlockState
- OverlapBlockState
- WeightedOverlapBlockState
- LayeredBlockState
- LayeredWeightedBlockState
- LayeredOverlapBlockState
- LayeredWeightedOverlapBlockState
- NestedBlockState
- PPBlockState
- RankedBlockState
- ModularityState
- NormCutState
- MapEquationState
- CliqueState
- PickleState
- EntropyState
- CLabelState
- MCMCState
- MultiflipMCMCState
- MultilevelMCMCState
- GibbsMCMCState
- ExhaustiveSweepState
- DrawBlockState
- minimize_blockmodel_dl
- minimize_nested_blockmodel_dl
- mcmc_equilibrate
- mcmc_anneal
- label_propagation
- lukes_partition
- hrg_fit
- hrg_predict
- hrg_consensus
- hrg_generate
- harmonic_function
- local_and_global_consistency
- PartitionModeState
- ModeClusterState
- PartitionCentroidState
- partition_overlap
- nested_partition_overlap
- variation_information
- mutual_information
- reduced_mutual_information
- rand_index
- split_join_distance
- contingency_graph
- shuffle_partition_labels
- shuffle_nested_partition_labels
- order_partition_labels
- order_nested_partition_labels
- align_partition_labels
- align_nested_partition_labels
- partition_overlap_center
- nested_partition_overlap_center
- nested_partition_clear_null
- contiguous_map
- nested_contiguous_map
- mf_entropy
- bethe_entropy
- microstate_entropy
- marginal_multigraph_entropy
- marginal_multigraph_sample
- marginal_multigraph_lprob
- marginal_graph_sample
- marginal_graph_lprob
- get_block_edge_gradient
- get_hierarchy_tree
- PartitionHist
- BlockPairHist
- HistState
- LatentLayerBaseState
- LatentMultigraphBlockState
- LatentClosureBlockState
- MeasuredBlockState
- MeasuredClosureBlockState
- MixedMeasuredBlockState
- LatentMaskBlockState
- UncertainBlockState
- UncertainBaseState
- latent_multigraph
- DynamicsBlockStateBase
- BPBlockStateBase
- PseudoNormalBlockState
- NormalGlauberBlockState
- LinearNormalBlockState
- LVBlockState
- EpidemicsBlockState
- IsingBlockStateBase
- IsingGlauberBlockState
- CIsingGlauberBlockState
- PseudoIsingBlockState
- PseudoCIsingBlockState
- PottsBlockStateBase
- PottsGlauberBlockState
- PseudoPottsBlockState
- PottsState
- EMBlockState
- em_infer
- modularity
- partition_quality
- cpm_quality
graph_tool.searchgraph_tool.spectral- adjacency
- laplacian
- incidence
- transition
- modularity_matrix
- hashimoto
- magnetic_laplacian
- directed_laplacian
- AdjacencyOperator
- LaplacianOperator
- IncidenceOperator
- TransitionOperator
- HashimotoOperator
- CompactHashimotoOperator
- MagneticLaplacianOperator
- DirectedLaplacianOperator
- algebraic_connectivity
- spectral_embedding
- spectral_clustering
- num_spanning_trees
- dim_select
graph_tool.statsgraph_tool.structure- shortest_distance
- shortest_path
- count_shortest_paths
- all_shortest_paths
- all_predecessors
- random_shortest_path
- k_shortest_paths
- widest_distance
- widest_path
- resource_constrained_path
- find_negative_cycle
- voronoi_cells
- ego_graph
- spanner
- pseudo_diameter
- eccentricity
- diameter
- radius
- harmonic_diameter
- center
- periphery
- barycenter
- average_shortest_path_length
- global_efficiency
- local_efficiency
- wiener_index
- hyper_wiener_index
- schultz_index
- gutman_index
- s_metric
- small_world_sigma
- small_world_omega
- all_paths
- all_circuits
- random_walk
- loop_erased_random_walk
- eulerian_path
- eulerize
- find_cycle
- cycle_basis
- girth
- chordless_cycles
- cycle_ratio
- label_components
- label_largest_component
- extract_largest_component
- label_out_component
- count_reachable
- make_connected
- label_biconnected_components
- find_bridges
- local_bridges
- chain_decomposition
- is_semiconnected
- is_kl_connected
- kl_connected_subgraph
- vertex_percolation
- edge_percolation
- kcore_decomposition
- kcore_subgraph
- truss_decomposition
- onion_decomposition
- cut_size
- volume
- conductance
- normalized_cut_size
- edge_expansion
- mixing_expansion
- vertex_expansion
- boundary_expansion
- vertex_boundary
- edge_boundary
- minimum_spanning_tree
- random_spanning_tree
- minimum_spanning_arborescence
- all_spanning_arborescences
- common_spanning_trees
- prufer_sequence
- unfold_tree
- tree_broadcast_center
- tree_broadcast_time
- is_DAG
- edge_reciprocity
- topological_sort
- all_topological_sorts
- topological_generations
- transitive_closure
- transitive_reduction
- feedback_arc_set
- feedback_vertex_set
- dag_longest_path
- dag_to_branching
- antichains
- lowest_common_ancestors
- dominator_tree
- dominance_frontiers
- is_aperiodic
- flow_hierarchy
- cd_index
- is_tournament
- tournament_hamiltonian_path
- is_d_separator
- find_minimal_d_separator
- is_minimal_d_separator
- junction_tree
- is_chordal
- chordal_completion
- chordal_cliques
- find_induced_nodes
- treewidth
- maximal_cliques
- all_cliques
- largest_cliques
- maximum_weight_clique
- clique_number
- approx_maximum_clique
- large_clique_size
- clique_removal
- ramsey_r2
- graphlet_decomposition
- maximum_cardinality_matching
- maximum_weight_matching
- approx_minimum_maximal_matching
- k_factor
- maximal_extendability
- maximal_independent_vertex_set
- independence_number
- largest_independent_vertex_sets
- maximal_independent_vertex_sets
- approx_minimum_vertex_cover
- bipartite_vertex_cover
- minimum_edge_cover
- approx_minimum_edge_dominating_set
- approx_minimum_dominating_set
- connected_dominating_set
- sequential_vertex_coloring
- dsatur_vertex_coloring
- equitable_vertex_coloring
- edge_coloring
- tsp_tour
- steiner_tree
- approx_maximum_cut
- densest_subgraph
- vertex_ordering
- bandwidth
- similarity
- isomorphism
- subgraph_isomorphism
- mark_subgraph
- maximum_common_subgraphs
- graph_edit_distance
- bliss_automorphism_group
- nauty_automorphism_group
- weisfeiler_lehman_hash
- vertex_similarity
- simrank
- panther_similarity
- community_link_prediction
- common_neighbor_centrality
- is_planar
- planar_faces
- is_straight_line_drawing
- is_bipartite
- is_perfect
- find_asteroidal_triple
- is_threshold_graph
- find_threshold_graph
- is_distance_regular
- is_strongly_regular
- is_regular_expander
- intersection_array
- global_parameters
- tutte_polynomial
- chromatic_polynomial
graph_tool.util