DependencyGraph.Node

References
public sealed class DependencyGraph.Node
A node in a dependency graph.

Constructors

Node

#
public Node(string file, bool origin)
Create a new dependency node.
file (string)
origin (bool)

Properties

Box

#
public RectangleF Box { get; set; }
Modifiable bounds of node.

File

#
public string File { get; }
File represented by this node.

Origin

#
public bool Origin { get; }
Gets whether this node is the origin.

Recipients

#
public List<DependencyGraph.Node> Recipients { get; }
List of all nodes which depend on this one.

Type

#
public DependencyGraph.NodeFileType Type { get; }
Gets the file type of this node. Note: this will probably become a string at some point when I add plugin support for file dependencies.

X

#
public int X { get; set; }
Integral X coordinate of node in initial graph layout.

Y

#
public int Y { get; set; }
Integral Y coordinate of node in initial graph layout.

Methods

DetermineType

#
public static DependencyGraph.NodeFileType DetermineType(string file)
Determine the type of file in question.
file (string)

IsDirectRecipient

#
public bool IsDirectRecipient(Node node)
Gets whether the given recipient is part of the recipient list of this node.
node (DependencyGraph.Node)

IsRecipient

#
public bool IsRecipient(Node node)
Gets whether the given recipient is a direct or indirect recipient of this node.
node (DependencyGraph.Node)