Parent

GraphViz::GraphML

Constants

DEST
GTYPE

Attributes

attributes[R]
graph[RW]

The GraphViz object

Public Class Methods

new( file_or_str ) click to toggle source

Create a new GraphViz object from a GraphML file of string

# File lib/graphviz/graphml.rb, line 52
def initialize( file_or_str )
  data = ((File.file?( file_or_str )) ? File::new(file_or_str) : file_or_str)
  @xmlDoc = REXML::Document::new( data )
  @attributes = {
    :nodes => {},
    :edges => {},
    :graphs => {},
    :graphml => {},
    :endpoint => {},
    :port => {},
    :hyperedge => {}
  }
  @ignored_keys = []
  @graph = nil
  @current_attr = nil
  @current_node = nil
  @current_edge = nil
  @current_graph = nil

  parse( @xmlDoc.root )
end

Public Instance Methods

attributs() click to toggle source
# File lib/graphviz/graphml.rb, line 27
def attributs
   warn "`GraphViz::GraphML#attributs` is deprecated, please, use `GraphViz::GraphML#attributes`"
   return @attributes
end
graphml_data(node) click to toggle source
# File lib/graphviz/graphml.rb, line 88
def graphml_data(node)
   warn "graphml/data not supported!"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.