Why does following command not work in Mathematica 11.2?
Graph[{1 \[DirectedEdge] 1, 1 \[DirectedEdge] 1, 1 \[DirectedEdge] 1},
EdgeWeight -> {{1, 0}, {0, 1}, {1, 1}}]
From the official docs about EdgeWeight:
The weight $w_i$ can be any expression.
Removing the weights everything looks ok:
Update
The answer by @Carl Woll is good. If I want to display the EdgeWeights, there are also issues. Following does not work:
Block[{Identity},
Graph[{1 \[DirectedEdge] 1, 1 \[DirectedEdge] 1, 1 \[DirectedEdge] 1},
EdgeWeight -> Identity /@ {{1, 0}, {0, 1}, {1, 1} }, EdgeLabels -> "EdgeWeight"]]
There is already a question discussing this: Label multiple edges between same vertices




VectorQis used to check the validity of the weight vector. (It doesn't consider lists of lists to be vectors.) – Szabolcs Mar 11 '18 at 16:13VectorQis actually used (internally?), could be an easy solution to replace it byListQ? – Hotschke Mar 12 '18 at 14:30{0,1}ora={1,0}should make no difference. Using a vector-valued function felt close enough to the current question. But I can understand that you want to keep the scope of questions as narrow as possible. I will move it to a follow up question with reference to this one. I hope this is acceptable. – Hotschke Mar 13 '18 at 10:27Save Graph As..., I get only an error message:Set::write: Tag Inherited in Inherited[State] is Protected.The question 132009 seems to be related. Do you know how to resolve this? – Hotschke Apr 24 '18 at 05:42