code: function dotcfg(fsm, options) {
  
    options = options || {}
  
    var config      = dotcfg.fetch(fsm),
        name        = options.name,
        rankdir     = dotcfg.rankdir(options.orientation),
        states      = dotcfg.states(config, options),
        transitions = dotcfg.transitions(config, options),
        result      = { }
  
    if (name)
      result.name = name
  
    if (rankdir)
      result.rankdir = rankdir
  
    if (states && states.length > 0)
      result.states = states
  
    if (transitions && transitions.length > 0)
      result.transitions = transitions
  
    return result
  }
docs: -------------------------------------------------------------------------------------------------