YAP 7.1.0
wgraphs.yap
Go to the documentation of this file.
1/**
2 * @file wgraphs.yap
3 * @author VITOR SANTOS COSTA <vsc@VITORs-MBP.lan>
4 * @date 2006
5 *
6 *
7*/
8
9/**************************************
10
11SICStus compatible wgraphs.yap
12
13**************************************/
14
15:- module( wgraphs,
16 [vertices_edges_to_wgraph/3]
17 ).
18
19:- wdgraph_vertices/2wdgraph_edges/2wdgraph_to_dgraph/2dgraph_to_wdgraph/2wdgraph_add_vertices/3wdgraph_del_vertices/3wdgraph_add_edges/3wdgraph_del_edges/3wdgraph_transpose/2wdgraph_neighbors/3wdgraph_neighbours/3wdgraph_transitive_closure/2wdgraph_symmetric_closure/2wdgraph_top_sort/2wdgraph_max_path/5wdgraph_min_path/5wdgraph_min_paths/3wdgraph_path/3reexport(library(wdgraphs),
20 [ as vertices,
21 as edges,
22 as wgraph_to_ugraph,
23 as ugraph_to_wgraph,
24 as add_vertices,
25 as del_vertices,
26 as add_edges,
27 as del_edges,
28 as transpose,
29 as neighbors,
30 as neighbours,
31 as transitive_closure,
32 as symmetric_closure,
33 as top_sort,
34 as max_path,
35 as min_path,
36 as min_paths,
37 as path]).
38
39:- wundgraph_min_tree/3reexport(library(wundgraphs),
40 [ as min_tree]).
41
42:- wdgraph_new/1wdgraph_add_vertices_and_edges/4use_module(library(wdgraphs),
43 [,
44 ]).
45
46
47/**
48 * @defgroup wgraphs Weighted Graphs
49 * @ingroup YAPLibrary
50 * @brief Weighted Graph Processing Utilities.
51 *
52 * @{
53*/
54
55
56vertices_edges_to_wgraph(Vertices, Edges, Graph) :-
57 wdgraph_new(G0),
58 wdgraph_add_vertices_and_edges(G0, Vertices, Edges, Graph).
59
60
61%% @}
62
63
reexport(+F)
use_module( +Files )