I taught a class for colleague this morning and he asked me to cover some 
material on relations. So I took that opportunity to figure out how to 
implement relations in Sage. It went pretty well, but one exception is that 
in squaring an adjacency matrix of a relation, I'd like to get a simple 
adjacency matrix with just 0's and 1's. The way I did the calculations, I 
got the numbers of different paths of length 2 connecting the vertices. 
That's fine except that the graphs of the squared relations become messy. 
If anyone knows how to fix this, I'd appreciate the help.

I've published my notebook at 
http://www.sagenb.org/home/pub/4715

-- 
You received this message because you are subscribed to the Google Groups 
"sage-edu" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-edu/-/5dGYcv4ehjYJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-edu?hl=en.

Reply via email to