Directed Acyclic Graph Layout Algorithm for Edge Crossing Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current algorithms for drawing directed acyclic graphs (DAGs) face challenges in optimizing aesthetics, such as minimizing edge crossings and maximizing symmetry, which are computationally intractable, leading to the need for fast and efficient methods that can maintain short and straight edges while avoiding congestion.

Innovation Solution

The proposed algorithm includes steps for tree-based DAG layout, edge-crossing reduction, edge straightening, compaction, and y-coordinate assignment to reduce edge crossings and prioritize vertical edges, with a focus on interesting paths to enhance visualization.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If Quadratic Programming methods are used to achieve compaction in iterative graph drawing algorithms, then the aesthetic quality of the graph layout is improved, but the computational time and resource consumption increase significantly

Engineering Contradiction:
Improvelayout precisionVSAvoidcomputational time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The patent segments the graph layout problem into multiple independent phases: initial placement, compaction, and aesthetic optimization. Each phase uses simplified algorithms that are computationally efficient, avoiding the need for a single complex Quadratic Programming solution while achieving comparable or better results through iterative refinement.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary actions by pre-calculating node positions, edge routes, and conflict zones before the main layout optimization. This preliminary structuring allows subsequent optimization steps to work with constrained, pre-organized data, reducing the computational complexity of achieving high-quality layouts.

Inventive Principle:
Principle #10Preliminary action

2Manufacturing precision

If algorithms optimize all aesthetic goals simultaneously (edge crossings, symmetry, edge length), then the overall aesthetic quality improves, but the computational complexity becomes intractable (NP-hard)

Engineering Contradiction:
Improveaesthetic qualityVSAvoidalgorithmic complexity
Core Design Contradiction:
Manufacturing precisionVSDevice complexity

Solution Approach 1:

The patent divides aesthetic optimization into separate, sequential phases: first minimizing edge crossings, then optimizing symmetry, and finally adjusting edge lengths. Each phase focuses on one aesthetic criterion using specialized algorithms, avoiding the NP-hard complexity of simultaneous multi-criteria optimization while achieving cumulative aesthetic improvements.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent applies partial optimization at each phase, focusing computational resources on improving one aesthetic criterion at a time rather than attempting complete simultaneous optimization. This partial action approach achieves sufficient aesthetic quality for practical applications without incurring prohibitive computational costs.

Inventive Principle:
Principle #16Partial or excessive action

3Reliability

If the graph layout is redrawn frequently for dynamic data, then the visualization remains up-to-date, but the computational overhead accumulates and reduces system performance

Engineering Contradiction:
Improvevisualization accuracyVSAvoidsystem performance
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent performs preliminary calculations to establish node positions, edge routing constraints, and conflict detection structures before redrawing operations. This pre-computation allows frequent updates to dynamic graphs to proceed efficiently by reusing previously calculated structural information rather than performing complete layout optimizations from scratch.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements dynamic graph layout algorithms that can incrementally update positions and routes when graph structure changes, rather than performing complete static optimization. This dynamic approach maintains visualization accuracy for frequently updated graphs while reducing computational overhead by only recalculating affected portions of the layout.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS8237716B2Algorithm for drawing directed acyclic graphs
Publication Date: 2012.08.07 FAIR ISAAC & CO INC
  • US8237716B2 patent drawing
  • US8237716B2 patent drawing
  • US8237716B2 patent drawing

AI summary

A system and method for drawing directed acyclic graphs is disclosed. In particular, an algorithm, as implemented in a method and system, to aesthetically layout directed acyclic graphs is presented. The algorithm includes methods to reduce the number of edge crossings and increase the number of straight edges in such drawings. The algorithm keeps short and straight edges wherever possible and gives preference to vertical edges. It also provides an edge-crossing reduction heuristic to refine the layout obtained after standard median heuristic layout, and further provides a method to focus on important paths in the graph through layout.