coloring graph
Clarification: Coloring edges in semantic sense.
I meant in Graph (discrete mathematics) - Wikipedia send of edge_coloring ( Graph coloring - Wikipedia ).
Therefore, not colors , but entities. In logseq sense to color edges with artibrary pages, like in rdf. Therefore, my examples.
Rendering-wise , I like neo4j approach, by putting text on edges:
Eventually this library on MIT license maybe helpful:

