addEdge static method

void addEdge(
  1. List<List<InputEdge?>> edges,
  2. int to,
  3. InputEdge edge
)

Implementation

static void addEdge(List<List<InputEdge?>> edges, int to, InputEdge edge) {
  if (edges[to][edge.encoderIndex] == null ||
      edges[to][edge.encoderIndex]!.cachedTotalSize > edge.cachedTotalSize) {
    edges[to][edge.encoderIndex] = edge;
  }
}