DotOptions.setArcColor

DotOptions.setArcColor(tail, head, color)
Parameters:
  • tail (int) – the id of the tail of the arc.

  • head (int) – the id of the head of the arc.

  • color (str) – the color of the arc.

Return type:

None

Example

import pyagrum as gum

bn = gum.fastBN("A->B")
a, b = bn.idFromName("A"), bn.idFromName("B")
options = gum.DotOptions()
options.setArcColor(a, b, "red")
print(next(line.strip() for line in bn.toDot(options).splitlines() if '"A" -> "B"' in line))
# "A" -> "B" [fontsize="10", tooltip="0 → 1", color="red"];

Class

DotOptions