| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.98.0/docs/apis/_sources/weighted_directed_graph_1.rst.txt |
.. index:: single: weighted_directed_graph(Dictionary)
.. _weighted_directed_graph/1:
.. rst-class:: right
object
weighted_directed_graph(Dictionary)Weighted directed graph predicates using a dictionary representation. Edge weights use a pair representation (Vertex-Weight in neighbor lists, (Vertex1-Vertex2)-Weight for edge lists). The parametric object parameter is the dictionary to use for the graph representation.
| Availability:
| logtalk_load(graphs(loader))
| Author: Paulo Moura | Version: 1:0:0 | Date: 2026-02-20
| Compilation flags:
| static, context_switching_calls
| Imports:
| public :ref:`weighted_graph_common(Dictionary) <weighted_graph_common/1>`
| public :ref:`directed_graph_common <directed_graph_common/0>`
| Uses:
| :ref:`pairs <pairs/0>`
| Remarks: | (none)
| Inherited public predicates: | Â :ref:`weighted_graph_protocol/0::add_edge/5` Â :ref:`graph_protocol/0::add_edges/3` Â :ref:`graph_protocol/0::add_vertex/3` Â :ref:`graph_protocol/0::add_vertices/3` Â :ref:`graph_protocol/0::all_pairs_min_paths/2` Â :ref:`graph_protocol/0::all_pairs_min_predecessors/2` Â :ref:`graph_protocol/0::breadth_first_order/3` Â :ref:`directed_graph_protocol/0::cycle/2` Â :ref:`weighted_graph_protocol/0::delete_edge/5` Â :ref:`graph_protocol/0::delete_edges/3` Â :ref:`graph_protocol/0::delete_vertex/3` Â :ref:`graph_protocol/0::delete_vertices/3` Â :ref:`graph_protocol/0::depth_first_order/3` Â :ref:`weighted_graph_protocol/0::edge/4` Â :ref:`graph_protocol/0::edges/2` Â :ref:`graph_protocol/0::empty/1` Â :ref:`directed_graph_protocol/0::has_cycle/1` Â :ref:`weighted_graph_protocol/0::has_negative_cycle/1` Â :ref:`graph_protocol/0::has_path/3` Â :ref:`directed_graph_protocol/0::in_degree/3` Â :ref:`directed_graph_protocol/0::is_acyclic/1` Â :ref:`graph_protocol/0::is_bipartite/1` Â :ref:`graph_protocol/0::is_complete/1` Â :ref:`graph_protocol/0::is_sparse/1` Â :ref:`graph_protocol/0::max_path/5` Â :ref:`graph_protocol/0::min_distances/3` Â :ref:`graph_protocol/0::min_path/5` Â :ref:`weighted_graph_protocol/0::min_path_bellman_ford/5` Â :ref:`graph_protocol/0::min_predecessors/3` Â :ref:`graph_protocol/0::neighbors/3` Â :ref:`graph_protocol/0::new/1` Â :ref:`graph_protocol/0::new/2` Â :ref:`graph_protocol/0::new/3` Â :ref:`graph_protocol/0::number_of_edges/2` Â :ref:`graph_protocol/0::number_of_vertices/2` Â :ref:`directed_graph_protocol/0::out_degree/3` Â :ref:`graph_protocol/0::path/3` Â :ref:`graph_protocol/0::reachable/3` Â :ref:`directed_graph_protocol/0::strongly_connected_components/2` Â :ref:`directed_graph_protocol/0::symmetric_closure/2` Â :ref:`directed_graph_protocol/0::topological_sort/2` Â :ref:`directed_graph_protocol/0::transitive_closure/2` Â :ref:`directed_graph_protocol/0::transpose/2` Â :ref:`graph_protocol/0::vertices/2` Â :ref:`directed_graph_protocol/0::weakly_connected_components/2` Â :ref:`weighted_graph_protocol/0::wneighbors/3` Â
.. contents:: :local: :backlinks: top
.. index:: min_paths/3 .. _weighted_directed_graph/1::min_paths/3:
min_paths/3 ^^^^^^^^^^^^^^^
Computes shortest path tree from Vertex1 to all reachable vertices.
| Compilation flags:
| static
| Template:
| min_paths(Vertex1,Graph,PathTree)
| Mode and number of proofs:
| min_paths(+vertex,+graph,-graph) - zero_or_one
(no local declarations; see entity ancestors if any)
(no local declarations; see entity ancestors if any)
(none)