Skip to content

The graph name of the dependent graph is a constant #97

@yoshihiro503

Description

@yoshihiro503

There is a problem that links do not work correctly unless the graph name is “depend” as shown below in the graph dot file given by the option hierarcy-graph, which displays dependent graphs.

Example of a dotfile that does not work properly

digraph foo {
  ...
}

Because the graph name foo of the dot file is not “depend”, the link in the dependent graph does not work properly in the generated html.

How to fix it

The generate_dependency_graph function in generate_index.ml specifies a map by usemap in the img tag. It would be better to use the graph name of the given dot file instead of a constant.

let generate_dependency_graph xref_table output_dir dot_file =
  ...
  Printf.sprintf {|<h2>Clickable Dependency Graph of Files</h2><img src="%s" usemap="#depend" class="img-darkmode-enable"/>%s|} png_filename map

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions