Ticket #2817 (new enhancement)

Opened 9 months ago

Last modified 4 months ago

specify options for parts of graphs

Reported by: jason Assigned to: jason
Priority: major Milestone: sage-wishlist
Component: graph theory Keywords:
Cc:

Description

See the post at:

http://groups.google.com/group/sage-support/browse_thread/thread/64b76550609c1019

One way to handle setting display options for different vertices/edges is to have the following conventions:

  • If edge_style is the dictionary **edge_style, pass **edge_style into the arrow() commands
  • If edge_style is a list, then we want to create (possibly different) edge_style dictionaries for each edge. For each item in the list:
    • if the item is a dictionary d, then update all edge_style dictionaries with the dictionary d.
    • if the item is a list L with L[0]=list of edges, L[1]=dictionary d, then for each edge in L[0], update its edge_style with d.

Optimize this so that we create a dictionary for an edge iff it has a different edge style than other edges. In other words, first have only one edge_style dictionary. If a list is edges is then specified, then take those out of the default edge_list and update their dictionary, etc. is there a data structure which efficiently partitions objects (maybe Sage partitions!?)

Change History

09/09/2008 08:01:52 PM changed by rlm

  • owner changed from rlm to jason.

09/09/2008 08:08:24 PM changed by jason

  • milestone changed from sage-3.1.3 to sage-wishlist.