7.7
8.8 Web Graphs
(require rebellion/web-graph) | package: rebellion |
A web graph is an immutable, directed multigraph where nodes are URIs and edges are link relations.
procedure
(web-graph? v) → boolean?
v : any/c
A predicate for web graphs.
procedure
(web-graph link ...) → web-graph?
link : web-link?
Constructs a web graph containing the given links.
Example:
> (web-graph (web-link "http://example.org" 'stylesheet "/styles.css") (web-link "http://example.org" 'stylesheet "/fonts.css") (web-link "http://example.org" 'search "/opensearch.xml") (web-link "http://example.org" 'privacy-policy "/privacy-policy"))
(web-graph
(web-link "http://example.org" 'stylesheet "/styles.css")
(web-link "http://example.org" 'stylesheet "/fonts.css")
(web-link "http://example.org" 'search "/opensearch.xml")
(web-link "http://example.org" 'privacy-policy "/privacy-policy"))
value
The empty web graph.