DataFormats»Net ML

Net ML

1995 on the Sunbelt in London the Pajek team proposed NetML - a SGML? (father of XML) format for describing networks. Focused on creating images? Works like a xml/postscript/pajek.net hybrid language. The format takes a hierarchical approach, storing drawing information and network attributes at different levels

Main Site

 http://vlado.fmf.uni-lj.si/pub/networks/netml/default.htm

Specification

Short Example



<!-- NETML - Example P 1 simple graph picture --> 
<!doctype netml SYSTEM "./netml.dtd" [ 
<!entity shapes SYSTEM "./shapes.cfg">] > 
<netml>  &shapes; 
  <graph id=karo1b type="simple,undirected,ordered">  
    <star at=a1> 
      <line to=c1> 
      <line to=b1> 
    </star>  
    <star at=b1> 
      <line to=a1> 
      <line to=e1> 
      <line to=d1> 
    </star>  
    <star at=c1> 
      <line to=a1> 
      <line to=d1> 
      <line to=e1> 
    </star>  
    <star at=d1> 
      <line to=b1> 
      <line to=e1> 
      <line to=c1> 
    </star>  
    <star at=e1> 
      <line to=b1> 
      <line to=c1> 
      <line to=d1> 
    </star>  
  </graph>  
  <picture id=london1p dim=2>  
    <get od=karo1b>  
    <point id=pa> 850 350 
    <vertex id=a1 pos=pa shape=ellipse>  
      <par id=ic val=LightMagenta> 
      <par id=xfact val=2.5>  
      <par id=bc val=Red> 
      <par id=yfact val=2.5>  
    </vertex>  
    <shape id=ellipse>  
      <par id=ic val=LightCyan> 
      <par id=xfact val=2.5>  
      <par id=bc val=Blue> 
      <par id=yfact val=2.5>  
    </shape>  
    <point id=pb> 600 600 
    <vertex id=b1 pos=pb>  
    <point id=pc> 600 100 
    <vertex id=c1 pos=pc>  
    <shape id=ellipse>  
      <par id=ic val=LightYellow> 
      <par id=bc val=Brown>  
    </shape>  
    <point id=pd> 100 600 
    <vertex id=d1 pos=pd>  
    <point id=pe> 100 100 
    <vertex id=e1 pos=pe>  
  </picture> 
</netml>