Nevermind on #1, I'm an idiot :-) I have approached the DiGraph problem a different way (and no doubt how I should've done it from the beginning).
Although I still need to figure out a good interactive mechanism to delete a vertex and redraw the graph. Hmmmm... On Aug 16, 1:36 am, docfleetwood <docfleetw...@gmail.com> wrote: > That is awesome, thanks. I've been messing with it for hours but I > have two questions... > > 1. When I try to create my own matrix, or constrain the weights in > the random_matrix, the edge labels come back as 'none'. How do I > create edge weights when I create the matrix? I need values b/w 0 and > 1. I have tried a number of ways that I think should work but don't. > Or, how do I use the DiGraph.weighted statement to put the matrix > values as weights rather than number of edges connecting two vertices? > > 2. I need the slider to delete the exact vertex I want, not just drop > off the last one - any idea on how to do that? (and it doesn't have to > be a 'slider' it could be a selector or whatever it needs to be) > > Thanks again. > > On Aug 15, 11:29 pm, jason-s...@creativetrax.com wrote: > > > docfleetwood wrote: > > > Hello folks, > > > > Very new to this and I'm looking for some help getting started. I > > > want to create a weighted edge directed graph. Then I want to add an > > > interactive slider where the student can remove one of the vertices > > > and the graph redraws. Then they can move a second interactive slider > > > and remove a second vertex and the graph redraws again. It will mimic > > > a food web with the removal of species from the web. The weights will > > > act as % of a predators diet. Can anyone help me get started with the > > > code? So if you could show me how to make one slider and a small > > > weighted digraph I could likely expand it from there. > > > > PS - I keep reading the tutorials and whatnot, really I do. > > > Doeshttp://sagenb.org/home/pub/733/help? > > > Log into sagenb.org, then go to the above published worksheet, then > > click on "Edit a copy" in the upper corner, then evaluate the cells. > > > Thanks, > > > Jason --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to sage-edu@googlegroups.com To unsubscribe from this group, send email to sage-edu+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en -~----------~----~----~----~------~----~------~--~---