category
diagram(Format)
Format
- Graph language file format.
Common predicates for generating diagrams.
logtalk_load(diagrams(loader))
static
Public predicates
libraries/3
Creates a diagram for a set of libraries using the specified options. The Project
argument is used as a prefix for the diagram file name.
static
libraries(Project,Libraries,Options)
libraries(+atom,+list(atom),+list(compound))
- one
libraries/2
Creates a diagram for a set of libraries using the default options. The Project
argument is used as a prefix for the diagram file name.
static
libraries(Project,Libraries)
libraries(+atom,+list(atom))
- one
libraries/1
Creates a diagram for a set of libraries using the default options. The prefix libraries
is used for the diagram file name.
static
libraries(Libraries)
libraries(+list(atom))
- one
all_libraries/1
Creates a diagram for all loaded libraries using the specified options.
static
all_libraries(Options)
all_libraries(+list(compound))
- one
all_libraries/0
Creates a diagram for all loaded libraries using default options.
static
all_libraries
- one
rlibrary/2
Creates a diagram for a library and its sub-libraries using the specified options.
static
rlibrary(Library,Options)
rlibrary(+atom,+list(compound))
- one
rlibrary/1
Creates a diagram for a library and its sub-libraries using default options.
static
rlibrary(Library)
rlibrary(+atom)
- one
library/2
Creates a diagram for a library using the specified options.
static
library(Library,Options)
library(+atom,+list(compound))
- one
library/1
Creates a diagram for a library using default options.
static
library(Library)
library(+atom)
- one
directories/3
Creates a diagram for a set of directories using the specified options. The Project
argument is used as a prefix for the diagram file name.
static
directories(Project,Directories,Options)
directories(+atom,+list(atom),+list(compound))
- one
directories/2
Creates a diagram for a set of directories using the default options. The Project
argument is used as a prefix for the diagram file name.
static
directories(Project,Directories)
directories(+atom,+list(atom))
- one
rdirectory/3
Creates a diagram for a directory and its sub-directories using the specified options. The Project
argument is used as a prefix for the diagram file name.
static
rdirectory(Project,Directory,Options)
rdirectory(+atom,+atom,+list(compound))
- one
rdirectory/2
Creates a diagram for a directory and its sub-directories using default options. The Project
argument is used as a prefix for the diagram file name.
static
rdirectory(Project,Directory)
rdirectory(+atom,+atom)
- one
rdirectory/1
Creates a diagram for a directory and its sub-directories using default options. The name of the directory is used as a prefix for the diagram file name.
static
rdirectory(Directory)
rdirectory(+atom)
- one
directory/3
Creates a diagram for a directory using the specified options. The Project
argument is used as a prefix for the diagram file name.
static
directory(Project,Directory,Options)
directory(+atom,+atom,+list(compound))
- one
directory/2
Creates a diagram for a directory using default options. The Project
argument is used as a prefix for the diagram file name.
static
directory(Project,Directory)
directory(+atom,+atom)
- one
directory/1
Creates a diagram for a directory using default options. The name of the directory is used as a prefix for the diagram file name.
static
directory(Directory)
directory(+atom)
- one
files/3
Creates a diagram for a set of files using the specified options. The file can be specified by name, basename, full path, or using library notation. The Project
argument is used as a prefix for the diagram file name.
static
files(Project,Files,Options)
files(+atom,+list(atom),+list(compound))
- one
files/2
Creates a diagram for a set of files using the default options. The file can be specified by name, basename, full path, or using library notation. The Project
argument is used as a prefix for the diagram file name.
static
files(Project,Files)
files(+atom,+list(atom))
- one
files/1
Creates a diagram for a set of files using the default options. The file can be specified by name, basename, full path, or using library notation. The prefix files
is used for the diagram file name.
static
files(Files)
files(+list(atom))
- one
all_files/1
Creates a diagram for all loaded files using the specified options.
static
all_files(Options)
all_files(+list(compound))
- one
all_files/0
Creates a diagram for all loaded files using default options.
static
all_files
- one
format_object/1
Returns the identifier of the object implementing the graph language currently being used. Fails if none is specified.
static
format_object(Object)
format_object(-object_identifier)
- zero_or_one
diagram_description/1
Returns the diagram description.
static
diagram_description(Description)
diagram_description(-atom)
- one
diagram_name_suffix/1
Returns the diagram name suffix.
static
diagram_name_suffix(Suffix)
diagram_name_suffix(-atom)
- one
Protected predicates
output_rlibrary/3
Generates diagram output for a library and its sub-libraries using the specified options.
static
output_rlibrary(Library,Path,Options)
output_rlibrary(+atom,+atom,+list(compound))
- one
output_library/3
Generates diagram output for a library using the specified options.
static
output_library(Library,Path,Options)
output_library(+atom,+atom,+list(compound))
- one
output_rdirectory/3
Generates diagram output for a directory and its sub-directories using the specified options.
static
output_rdirectory(Project,Path,Options)
output_rdirectory(+atom,+atom,+list(compound))
- one
output_externals/1
Output external nodes using the specified options depending on the value of the boolean option externals/1
.
static
output_externals(Options)
output_externals(+list(compound))
- one
output_files/2
Generates diagram output for a list of files using the specified options.
static
output_files(Files,Options)
output_files(+list,+list(compound))
- one
output_file/4
Generates diagram output for a file using the specified options.
static
output_file(Path,Basename,Directory,Options)
output_file(+atom,+atom,+atom,+list(compound))
- one
output_sub_diagrams/1
Outputs sub-diagrams using the specified options.
static
output_sub_diagrams(Options)
output_sub_diagrams(+list(compound))
- one
reset/0
Resets all temporary information used when generating a diagram.
static
reset
- one
output_node/6
Outputs a graph node.
static
output_node(Identifier,Label,Caption,Contents,Kind,Options)
output_node(+nonvar,+nonvar,+nonvar,+list(nonvar),+atom,+list(compound))
- one
node/6
Enumerates, by backtracking, all saved nodes.
static
node(Identifier,Label,Caption,Contents,Kind,Options)
node(?nonvar,?nonvar,?nonvar,?list(compound),?atom,?list(compound))
- zero_or_more
edge/5
Enumerates, by backtracking, all saved edges.
static
edge(From,To,Labels,Kind,Options)
edge(?nonvar,?nonvar,?list(nonvar),?atom,?list(compound))
- zero_or_more
output_edges/1
Outputs all edges.
static
output_edges(Options)
output_edges(+list(compound))
- one
save_edge/5
Saves a graph edge.
static
save_edge(From,To,Labels,Kind,Options)
save_edge(+nonvar,+nonvar,+list(nonvar),+atom,+list(compound))
- one
output_missing_externals/1
Outputs missing external nodes (usually due to unloaded resources) that are referenced from edges.
static
output_missing_externals(Options)
output_missing_externals(+list(compound))
- one
not_excluded_file/4
True when the given file is not excluded from the generated output. Excluded files may be specified by full path or by basename and with or without extension. Excluded directories may be listed by full or relative path.
static
not_excluded_file(Path,Basename,ExcludedDirectories,ExcludedFiles)
not_excluded_file(+atom,+atom,+list(atom),+list(atom))
- zero_or_one
output_file_path/4
Returns the output file path.
static
output_file_path(Name,Options,Format,Path)
output_file_path(+atom,+list(atom),+object_identifier,-atom)
- one
locate_library/2
Locates a library given its name.
static
locate_library(Library,Path)
locate_library(+atom,-atom)
- one
locate_directory/2
Locates a directory given its name or full path.
static
locate_directory(Directory,Path)
locate_directory(+atom,-atom)
- one
locate_file/5
Locates a file given its name, basename, full path, or library notation representation.
static
locate_file(File,Basename,Extension,Directory,Path)
locate_file(+atom,+atom,+atom,+atom,-atom)
- one
ground_entity_identifier/3
Converts an entity identifier to a ground term.
static
ground_entity_identifier(Kind,Identifier,GroundIdentifier)
ground_entity_identifier(+atom,+callable,-callable)
- one
filter_file_extension/3
Filters the file name extension depending on the file_extensions/1
option.
static
filter_file_extension(Basename,Options,Name)
filter_file_extension(+atom,+list(compound),-atom)
- one
filter_external_file_extension/3
Filters the external file name extension depending on the file_extensions/1
option.
static
filter_external_file_extension(Path,Options,Name)
filter_external_file_extension(+atom,+list(compound),-atom)
- one
add_link_options/3
Adds url/1
, urls/2
, and tooltip/1
link options (for use by the graph language) based on the specified path to the list of options.
static
add_link_options(Path,Options,LinkingOptions)
add_link_options(+atom,+list(compound),-list(compound))
- one
omit_path_prefix/3
Removes a prefix from a path, returning the relative path, when using the option omit_path_prefixes/1
. Used mainly for constructing directory and file node identifiers and captions.
static
omit_path_prefix(Path,Options,Relative)
omit_path_prefix(+atom,+list(compound),-atom)
- one
add_node_zoom_option/4
Adds node zoom options when using the zoom option.
static
add_node_zoom_option(Identifier,Suffix,Options,NodeOptions)
add_node_zoom_option(+atom,+atom,+list(compound),-list(compound))
- one
message_diagram_description/1
Diagram description for progress messages.
static
message_diagram_description(Description)
message_diagram_description(?atom)
- one
Private predicates
node_/6
Table of saved nodes.
dynamic
node_(Identifier,Label,Caption,Contents,Kind,Options)
node_(?nonvar,?nonvar,?nonvar,?list(compound),?atom,?list(compound))
- zero_or_more
edge_/5
Table of saved edges.
dynamic
edge_(From,To,Labels,Kind,Options)
edge_(?nonvar,?nonvar,?list(nonvar),?atom,?list(compound))
- zero_or_more
Operators
(none)