addChannel
@totemsdk/omnia-router / addChannel
Function: addChannel()
addChannel(
graph,edge):void
Add a directed channel edge to the graph.
A single logical channel between two parties has two directed edges — one
per direction of flow. Both may be added independently using the same
channelId because they are keyed by (channelId, from). Calling
addChannel twice with the same (channelId, from) replaces the first
entry (balance update semantics).
Parameters
graph
edge
Returns
void