Class CPGDOTExporter


  • public class CPGDOTExporter
    extends DOTExporter<CodePropertyGraph>
    Renders a code property graph as Graphviz DOT, with a filter selecting which edge types appear.
    • Constructor Detail

      • CPGDOTExporter

        public CPGDOTExporter()
        Creates an exporter with the default configuration and every edge type enabled.
      • CPGDOTExporter

        public CPGDOTExporter​(DOTExporterConfig config)
        Creates an exporter that emits every edge type.
        Parameters:
        config - rendering options
    • Method Detail

      • includeEdgeTypes

        public CPGDOTExporter includeEdgeTypes​(CPGEdgeType... types)
        Replaces the emitted edge set with exactly the given types.
        Parameters:
        types - edge types to emit; must not be empty
        Returns:
        this exporter
        Throws:
        IllegalArgumentException - if no types are given
      • cfgOnly

        public CPGDOTExporter cfgOnly()
        Restricts output to control-flow edges plus containment.
        Returns:
        this exporter
      • dataFlowOnly

        public CPGDOTExporter dataFlowOnly()
        Restricts output to def, use and reaching-def edges plus containment.
        Returns:
        this exporter
      • callGraphOnly

        public CPGDOTExporter callGraphOnly()
        Restricts output to call, parameter and return-value edges.
        Returns:
        this exporter