Last change
on this file since 2768 was
2768,
checked in by mkommend, 14 years ago
|
added solution folders and sources for the netron library (ticket #867)
|
File size:
1.0 KB
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Text;
|
---|
4 |
|
---|
5 | namespace Netron.Diagramming.Core.Analysis
|
---|
6 | {
|
---|
7 | /// <summary>
|
---|
8 | /// Describes a connection from the point of view of graph analysis.
|
---|
9 | /// </summary>
|
---|
10 | public interface IEdge
|
---|
11 | {
|
---|
12 | /// <summary>
|
---|
13 | /// Indicates if this edge is directed or undirected.
|
---|
14 | /// </summary>
|
---|
15 | bool IsDirected { get; set;}
|
---|
16 | /// <summary>
|
---|
17 | /// Returns the first, or source, node upon which this Edge is incident.
|
---|
18 | /// </summary>
|
---|
19 | INode SourceNode { get;}
|
---|
20 | /// <summary>
|
---|
21 | /// Returns the second, or target, node upon which this Edge is incident.
|
---|
22 | /// </summary>
|
---|
23 | INode TargetNode { get;}
|
---|
24 | /// <summary>
|
---|
25 | /// Given a Node upon which this Edge is incident, the opposite incident
|
---|
26 | /// Node is returned. Throws an exception if the input node is not incident
|
---|
27 | /// on this Edge.
|
---|
28 | /// </summary>
|
---|
29 | INode AdjacentNode(INode node);
|
---|
30 | }
|
---|
31 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.