Documentation
¶
Overview ¶
Package graphml provides GraphML format export for code graphs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// Directed controls whether edges are directed (default: true).
Directed bool
// GraphID is the identifier for the graph element.
GraphID string
// Description is the GraphML document description.
Description string
}
Generator creates GraphML output from a code graph.
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator creates a Generator with default settings.
type Result ¶
type Result struct {
// Data is the generated GraphML content.
Data []byte
// NodeCount is the number of nodes exported.
NodeCount int
// EdgeCount is the number of edges exported.
EdgeCount int
// SkippedEdges is the number of edges skipped due to missing nodes.
SkippedEdges int
}
Result contains the generated GraphML and statistics.
Click to show internal directories.
Click to hide internal directories.