← Back

Master Edge Connections

← Back to all docs

Master Edge Connections

Learn how to create and customize edges to show relationships and data flow between nodes in your architecture diagrams

basicsbeginner⏱️7 min
Home/Documentation/Master Edge Connections

Learn how to create and customize edges to show relationships and data flow between nodes in your architecture diagrams

Master Edge Connections

Edges are connections or arrows between nodes that represent relationships, dependencies, or information flow in your architecture diagrams.

Welcome!

💡 In this tutorial, you'll learn how to create connections, add labels, customize visual styles, and manage edge relationships!

Key Capabilities

Drag to Connect

Create connections by dragging between nodes

Descriptive Labels

Add labels to describe relationships

Visual Customization

Customize colors, widths, and directions

Edge Algorithms

Choose different drawing styles for various visual effects

Directional Arrows

Show data flow with customizable arrow markers

Core Concepts

What Are Edges?

Edges represent the relationships and interactions between components in your architecture. They visually communicate how different parts of your system work together.

Common Edge Use Cases

API Calls

Show how services communicate via REST, GraphQL, or RPC

Data Flow

Indicate direction of information transfer through your system

Dependencies

Document which components depend on others

Message Queues

Represent asynchronous communication patterns

Database Connections

Show data persistence relationships and query patterns

Edge Connections in Action

See how edges connect nodes with different directions and labels

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.
Interactive

Try dragging the nodes to see how edges automatically adjust!

🎨 Visual Communication

Each edge can be customized to convey different types of relationships through visual styling like colors, widths, and arrow directions.

Which of these is a good use case for edges?

Decorating your diagram
Showing API communication between services
Making the diagram more colorful
Filling empty space

Edge Types and Algorithms

ArkT supports different edge drawing algorithms, each with its own visual style and use cases.

Available Algorithms

Linear

**Straight line connection** - Simple and direct. Best for clean, minimal diagrams and short-distance connections.

Catmull-Rom

**Smooth curved path** - Aesthetically pleasing. Handles complex layouts well with natural-looking curves.

Bezier Catmull-Rom

**Cubic Bezier curves** - Maximum smoothness. Professional appearance, best for presentation-ready diagrams.

💡 Choosing the Right Algorithm

Choose the algorithm that best fits your diagram's aesthetic and layout complexity. Linear for technical docs, Catmull-Rom for general use, Bezier for presentations!

Edge Directions and Markers

Edges can have arrows (markers) to show the direction of data flow, dependencies, or communication.

End Arrow

Arrow at the target node (most common for showing flow direction)

Start Arrow

Arrow at the source node (useful for reverse dependencies)

Both Arrows

Arrows at both ends (bidirectional communication)

No Arrows

No arrows (general association or non-directional)

When to Use Each Direction

•

API calls

Use "End" to show request direction from client to server

•

Database queries

Use "End" pointing from service to database

•

Bidirectional sync

Use "Both" for real-time synchronization or WebSocket connections

•

Loose coupling

Use "None" for general relationships without specific flow

Which arrow direction would you use for a WebSocket real-time sync?

End only
Start only
Both directions
No arrows
Step-by-Step Guides

Creating Connections

Drawing an Edge

•

Hover over the source node

•

Small circular handles appear on the node's edges

•

Click and hold on a handle

•

Drag your cursor toward the target node

•

Hover over the target node to see its handles

•

Release on a target handle to complete the connection

💡 Connection Tips

Pro tips for creating connections:

  • Nodes must exist before you can connect them
  • You can connect a node to itself (self-loop)
  • Multiple edges can connect the same two nodes
  • Drag slowly to see the edge path preview

Selecting Edges

•

Click directly on the edge line

•

The edge highlights to indicate selection

•

The control panel appears on the right

•

All edge properties become editable

🎯 Selection Help

Selection tips: Click on the thicker part of the edge line for easier selection. Selected edges show a highlighted outline. Click on empty canvas space to deselect.

Where do edge controls appear when you select an edge?

Top toolbar
Left sidebar
Right control panel
Bottom panel

Adding Labels to Edges

✅ Label Best Practices

Why label edges? Labels explain the relationship between connected components:

  • API endpoints: "GET /users", "POST /auth"
  • Data types: "User Data", "Configuration"
  • Protocols: "HTTPS", "gRPC", "WebSocket"
  • Frequencies: "Real-time", "Batch (nightly)"
•

Select the edge by clicking on it

•

Find the "Label" field in the control panel

•

Type a descriptive label

•

The label appears on the edge line

Label Writing Tips

Be concise but descriptive

Include technical details when relevant (protocols, endpoints)

Use consistent terminology across your diagram

Consider adding data types or frequencies

Good Label Examples

text
// Good edge label examples:
"GET /api/users" // API endpoint with method
"User Events (Kafka)" // Data type + protocol
"Real-time WebSocket" // Communication pattern
"Queries PostgreSQL" // Action + target
"Sends to Queue (async)" // Flow + async indicator

Clear, technical labels help everyone understand your architecture

Customizing Edge Appearance

Color Customization

Colors help categorize and distinguish different types of connections in your diagram.

Stroke Color

The color of the edge line itself. Use different colors for different connection types.

Label Fill

The background color of the label text. Helps labels stand out against complex diagrams.

🎨 Recommended Colors

Color Coding Strategy: 🔵 Blue edges: HTTP/REST API calls 🟢 Green edges: Database connections 🟠 Orange edges: Message queue/async communication 🟣 Purple edges: WebSocket/real-time connections ⚫ Gray edges: General dependencies

Width Adjustment

Stroke width can indicate the importance or type of connection:

Primary connections

Thicker lines (3-5px) - Critical data paths, main API calls

Secondary connections

Medium lines (2-3px) - Supporting services, standard communication

Optional dependencies

Thin lines (1-2px) - Weak coupling, optional integrations

Style Tips

Use consistent colors for similar connection types

Match edge colors to source or target node colors for cohesion

Keep critical paths visually prominent with thicker lines

Use label fill colors that contrast with the diagram background

What does stroke width typically indicate in edge styling?

The speed of data transfer
The importance or type of connection
The distance between nodes
The number of API calls

Changing Edge Styles

•

Select the edge

•

Find the edge type/algorithm selector in controls

•

Choose from Linear, Catmull-Rom, or Bezier Catmull-Rom

•

The edge redraws with the new algorithm

When to Use Each Style

Linear

Clean, technical diagrams with orthogonal layouts. Best for software architecture docs.

Catmull-Rom

General-purpose diagrams with moderate complexity. Good balance of aesthetics and clarity.

Bezier Catmull-Rom

Presentation-ready diagrams requiring smooth aesthetics. Perfect for executive presentations.

💡 Experiment!

Pro tip: Try moving nodes around after changing algorithms to see how each style responds to different layouts. Some algorithms handle tight spaces better than others!

Deleting Edges

•

Select the edge by clicking on it

•

Press Delete or Backspace key, OR

•

Use the delete option in the edge controls panel

⚠️ Deletion Behavior

Important to know:

  • Deleted edges can be restored with Cmd/Ctrl + Z (Undo)
  • Deleting a node automatically deletes all connected edges
  • You can select multiple edges (Shift + Click) and delete them together
Reference Material

Best Practices

Use different colors for different types of connections (API calls, data flow, dependencies)

Add labels to edges to describe the relationship or data being transferred

Use arrows to show the direction of data flow or dependencies

Make primary connections thicker than secondary ones

Choose edge algorithms that match your diagram style (smooth for presentations, straight for technical docs)

Label edges with technical details like protocols or endpoints

Use consistent edge styling across your entire diagram

Keep edge paths clear by adjusting node positions

Common Use Cases

Showing API communication between microservices

Documenting data flow in data pipelines

Mapping dependencies between system components

Illustrating message queue connections

Representing database relationships and queries

Visualizing authentication flows

Creating deployment dependency graphs

Documenting event-driven architectures

Keyboard Shortcuts

Essential Edge Shortcuts

Delete the selected edge

Delete

Delete the selected edge (alternative)

Backspace

Undo edge creation or deletion

Cmd+Z

Undo edge creation or deletion

Ctrl+Z

Deselect all edges

Escape
UI Elements

Interface Guide

Connection Handles

On node edges (appear on hover) - Small circular handles for creating connections. Click and drag from one handle to another.

Edge Label Input

Control panel (right side, when edge selected) - Text input for labeling the edge

Stroke Color Picker

Control panel (right side) - Choose color for the edge line

Label Fill Color Picker

Control panel (right side) - Choose background color for the label

Direction Selector

Control panel (right side) - Choose arrow direction (start, end, both, none)

Algorithm Selector

Control panel (right side) - Choose edge drawing algorithm (Linear, Catmull-Rom, Bezier)

Continue Learning

You're an Edge Master! 🎯

You now know how to create connections, add meaningful labels, and customize edges to create professional, informative architecture diagrams!

🎉 Congratulations!

What you've mastered: ✅ Creating connections between nodes ✅ Selecting and editing edges ✅ Adding descriptive labels ✅ Changing edge styles and algorithms ✅ Adding directional arrows ✅ Customizing colors and sizes ✅ Deleting edges

Pro tips to remember:

  • Use different colors for different connection types
  • Labels make diagrams easier to understand
  • Arrows show the direction of data flow
  • Thicker edges indicate more important connections
2 of 10

Related Articles

Infinite Levels

Master multi-level diagrams and breadcrumb navigation

basicsbeginner
6 min

Create Your First Node

Master the basics of node creation in ArkT diagrams

basicsbeginner
5 min

Add Text Annotations

Use text nodes for titles, labels, and annotations

basicsbeginner
4 min

On This Page

IntroductionUnderstanding EdgesWorking with EdgesQuick ReferenceNext Steps