X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fcomponents%2Fmetadata%2FmetadataDeps.ml;h=b393dbb91a8f0f0a3ca74983758e386c02738c3a;hb=5412a7f12ed2034b4dfb6104440a2308d6a6e8e1;hp=3247114a2e5489e5528d8301d86ef5c5c2438487;hpb=580b515a80013387fea56e41b03a579edac38f75;p=helm.git diff --git a/helm/software/components/metadata/metadataDeps.ml b/helm/software/components/metadata/metadataDeps.ml index 3247114a2..b393dbb91 100644 --- a/helm/software/components/metadata/metadataDeps.ml +++ b/helm/software/components/metadata/metadataDeps.ml @@ -98,7 +98,10 @@ struct let fat_value = 20 let fat_increment = fat_value let incomplete_attrs = ["style", "dashed"] - let global_node_attrs = ["fontsize", "9"; "width", ".4"; "height", ".4"] + let global_node_attrs = ["fontsize", "12"; "width", ".4"; "height", ".4"] + + let label_of_uri uri = UriManager.name_of_uri uri + (*let label_of_uri uri = UriManager.string_of_uri uri*) type neighborhood = { adjacency: UriManager.uri list lazy_t; (* all outgoing edges *) @@ -129,7 +132,7 @@ struct (*eprintf "Node '%s' not found.\n" (UriManager.string_of_uri uri);*) assert false in - Pp.header ~graph_attrs:["rankdir", "LR"] ~node_attrs:global_node_attrs fmt; + Pp.header ~graph_type:"strict digraph" ~graph_attrs:["rankdir", "LR"] ~node_attrs:global_node_attrs fmt; let rec aux = function | [] -> () @@ -137,7 +140,7 @@ struct let suri = UriManager.string_of_uri uri in Pp.node suri ~attrs:([ "href", UriManager.string_of_uri uri; - (*"label", UriManager.name_of_uri uri*) + "label", label_of_uri uri ] @ (if is_complete uri then [] else incomplete_attrs)) fmt; let new_nodes = ref [] in