Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/branches/SMLNJ/src/MLRISC/visualization/graphLayout.sml
ViewVC logotype

View of /sml/branches/SMLNJ/src/MLRISC/visualization/graphLayout.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 411 - (download) (annotate)
Fri Sep 3 00:25:03 1999 UTC (21 years, 3 months ago) by monnier
File size: 868 byte(s)
version 110.19
(*
 * Here are some graph layout annotations.
 *
 * -- Allen
 *)

structure GraphLayout =
struct

   exception LABEL of string
   exception COLOR of string
   exception NODE_COLOR of string
   exception EDGE_COLOR of string
   exception TEXT_COLOR of string
   exception ARROW_COLOR of string
   exception BACKARROW_COLOR of string
   exception BORDER_COLOR of string
   exception BORDERLESS 
   exception SHAPE of string 
   exception ALGORITHM of string
   exception EDGEPATTERN of string

   type annotations = Annotations.annotations

   type ('n,'e,'g) style = 
      { edge  : 'e Graph.edge -> annotations,
        node  : 'n Graph.node -> annotations,
        graph : 'g -> annotations
      }

   type layout = (annotations, annotations, annotations) Graph.graph

   fun makeLayout {node,edge,graph} G = 
       IsomorphicGraphView.map node edge graph G

end


root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0