private JObject WriteConnection(SerializeDependency connection) { return(new JObject( new JProperty("id", connection.DependencyId), new JProperty("start", connection.StartNode.Id), new JProperty("end", connection.EndNode.Id))); }
/// <summary> /// Evaluates whether this <see cref="SerializeDependency"/> has child properties in <see cref="CurrentGraph"/> that are dependent on the <see cref="SerializeDependency.StartNode"/> parent. /// </summary> /// <param name="dependency">The <see cref="SerializeDependency"/> dependency to query.</param> /// <returns>The <see cref="bool"/> result of the query.</returns> private bool IsCircular(SerializeDependency dependency) { var attemptPath = CurrentGraph.FindPath(dependency.EndNode, dependency.StartNode); return(attemptPath != null); }