CakeGraph Class

Summary

Represents the Cake task graph.
Namespace
Cake.Core.Graph
Base Types
  • object
graph BT Type-->Base0["object"] Type["CakeGraph"] class Type type-node

Syntax

public sealed class CakeGraph

Constructors

Name Summary
CakeGraph() Initializes a new instance of the CakeGraph class.

Properties

Name Value Summary
Edges IReadOnlyList<CakeGraphEdge>
Gets the edges in the graph.
Nodes IReadOnlyList<string>
Gets the nodes in the graph.

Methods

Name Value Summary
Add(string) void
Adds a node to the graph.
Connect(string, string) void
Connects two nodes in the graph together. If any of the nodes are missing, they will be added.
Exist(string) bool
Gets whether or not a node exists in the graph.
Traverse(string) IEnumerable<string>
Traverses the graph leading to the specified target.

Extension Methods

Name Value Summary
Dump<CakeGraph>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<CakeGraph>(CakeGraph[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<CakeGraph>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<CakeGraph>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Issues addin
ThrowIfNull<CakeGraph>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<CakeGraph>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin