getPointOrder method

List<String> getPointOrder(
  1. Edge edge
)

Implementation

List<String> getPointOrder(Edge edge) {
  if (p1 == edge.p1 || p1 == edge.p2) {
    return [p1, p2];
  } else {
    return [p2, p1];
  }
}