/** * Constructs an instance of Edge. * <p> * If the edge is undirected the the source and destination vertices may get * swapped to ensure undirected edges are consistently constructed. * </p> * * @param group the Edge group * @param source the source vertex * @param destination the destination vertex * @param directed true if the edge is directed * @param directedType the direction of the edge * @param matchedVertex used at query time to mark which vertex was matched. * @param properties the edge properties */ @JsonCreator Edge(@JsonProperty("group") final String group, @JsonProperty("source") final Object source, @JsonProperty("destination") final Object destination, @JsonProperty("directed") final Boolean directed, @JsonProperty("directedType") final DirectedType directedType, @JsonProperty("matchedVertex") final MatchedVertex matchedVertex, @JsonProperty("properties") final Properties properties) { this(group, source, destination, getDirected(directed, directedType), matchedVertex, properties); }
/** * Constructs an instance of Edge. * <p> * If the edge is undirected the the source and destination vertices may get * swapped to ensure undirected edges are consistently constructed. * </p> * * @param group the Edge group * @param source the source vertex * @param destination the destination vertex * @param directed true if the edge is directed * @param directedType the direction of the edge * @param matchedVertex used at query time to mark which vertex was matched. * @param properties the edge properties */ @JsonCreator Edge(@JsonProperty("group") final String group, @JsonProperty("source") final Object source, @JsonProperty("destination") final Object destination, @JsonProperty("directed") final Boolean directed, @JsonProperty("directedType") final DirectedType directedType, @JsonProperty("matchedVertex") final MatchedVertex matchedVertex, @JsonProperty("properties") final Properties properties) { this(group, source, destination, getDirected(directed, directedType), matchedVertex, properties); }