public Participant AddParticipant(Participant Participant, UInt32 PersonMonths, Boolean WPLeader = false) { var edge = Graph.AddEdge(this.Vertex, "HasParticipant", Participant.Vertex). SetProperty("PersonMonths", PersonMonths); if (WPLeader) edge.SetProperty("IsLeader", true); return Participant; }
public Participant AddParticipant(String ShortName, String LongName) { var Participant = new Participant(this.Vertex.OutDegree("HasParticipant") + 1, Name, Graph); Graph.AddEdge(this.Vertex, "HasParticipant", Participant.Vertex); return Participant; }
public Participant AddLeadingParticipant(Participant Participant, UInt32 PersonMonths) { Graph.AddEdge(this.Vertex, "HasParticipant", Participant.Vertex). SetProperty("IsLeader", true). SetProperty("PersonMonths", PersonMonths); return Participant; }