title: Creating/editing mxgraph models using Python
body: <p>Can mxgraph models be created, edited or converted from JSON or XML data to mxgraph format using Python? If so how can it be done?, I searched on various sites but could not find a solution (an example JSON data); </p>
  
  <pre><code>  {
      name: 'Globals',    
      parentObjects: []
    },
  
    {
      name: 'Customer',
      included: true,    
      parentObjects: [
        {
          name: 'Globals',
        }
      ],
    },
  
    {
      name: 'Product',
      included: true,    
      parentObjects: [
        {
          name: 'Globals',
        }
      ],
    },
  
    {
      name: 'Transaction',
      included: true,    
      parentObjects: [
        {
          name: 'Customer',
        },
        {
          name: 'Product',
        }
      ],
    }
  
  </code></pre>