【实例简介】
这是我从matlab的文件共享中心下载的图论工具箱,matlabBGL
【实例截图】
【核心代码】
matlab_bgl-4.0.1
└── matlab_bgl
├── @inplace
│ ├── assign.m
│ ├── display.m
│ ├── double.m
│ ├── end.m
│ ├── inplace.m
│ ├── size.m
│ ├── subsasgn.m
│ └── subsref.m
├── @ipdouble
│ └── ipdouble.m
├── @ipint32
│ └── ipint32.m
├── Contents.m
├── all_shortest_paths.m
├── astar_search.m
├── bellman_ford_sp.m
├── betweenness_centrality.m
├── bfs.m
├── biconnected_components.m
├── boyer_myrvold_planarity_test.m
├── breadth_first_search.m
├── chrobak_payne_straight_line_drawing.m
├── circle_graph_layout.m
├── clique_graph.m
├── clustering_coefficients.m
├── combine_visitors.m
├── components.m
├── core_numbers.m
├── custom
│ ├── dijkstra_all_sp.m
│ └── path_histogram.m
├── cycle_graph.m
├── dag_sp.m
├── depth_first_search.m
├── dfs.m
├── dijkstra_sp.m
├── doc
│ ├── changed.txt
│ ├── html
│ │ ├── changes.html
│ │ ├── core_numbers_example
│ │ │ ├── core_numbers_example.html
│ │ │ ├── core_numbers_example.png
│ │ │ ├── core_numbers_example_01.png
│ │ │ └── core_numbers_example_02.png
│ │ ├── faq.html
│ │ ├── images
│ │ │ └── matlab-bgl-header.png
│ │ ├── index.html
│ │ ├── new_in_3
│ │ │ ├── new_in_3_0.html
│ │ │ ├── new_in_3_0.png
│ │ │ ├── new_in_3_0_01.png
│ │ │ ├── new_in_3_0_02.png
│ │ │ └── new_in_3_0_03.png
│ │ ├── new_in_4
│ │ │ ├── new_in_4_0.html
│ │ │ ├── new_in_4_0.png
│ │ │ ├── new_in_4_0_01.png
│ │ │ ├── new_in_4_0_02.png
│ │ │ ├── new_in_4_0_03.png
│ │ │ └── new_in_4_0_04.png
│ │ ├── old.html
│ │ ├── planar_graphs
│ │ │ ├── planar_graphs.html
│ │ │ ├── planar_graphs.png
│ │ │ ├── planar_graphs_01.png
│ │ │ ├── planar_graphs_02.png
│ │ │ ├── planar_graphs_03.png
│ │ │ ├── planar_graphs_04.png
│ │ │ ├── planar_graphs_05.png
│ │ │ ├── planar_graphs_06.png
│ │ │ ├── planar_graphs_07.png
│ │ │ └── planar_graphs_08.png
│ │ ├── record_alg
│ │ │ └── record_alg.html
│ │ ├── red_black
│ │ │ ├── red_black.html
│ │ │ ├── red_black.png
│ │ │ ├── red_black_01.png
│ │ │ ├── red_black_02.png
│ │ │ ├── red_black_03.png
│ │ │ └── red_black_04.png
│ │ ├── reweighted_graphs
│ │ │ └── reweighted_graphs.html
│ │ ├── site.css
│ │ └── style.css
│ ├── mxdom2mbgl-html.xsl
│ └── write_examples_html.m
├── edge_weight_index.m
├── edge_weight_vector.m
├── edmonds_maximum_cardinality_matching.m
├── edmunds_karp_max_flow.m
├── erdos_reyni.m
├── examples
│ ├── approx_multiway_cut.m