graph ER {
	node [shape=box]; // entities
		department;
		manager;
		location;
		project;
		employee;
		family;
	node [shape=ellipse]; // attributes
		
		// department
		{node [label="name"] name0;}
		
		// manager
		start;
		
		// location
		{node [label="name"] name1;}
		{node [label="address"] address0;}
		
		// project
		{node [label="name"] name2;}
		number;
		
		// employee
		{node [label="name"] name3;}
		ssno;
		{node [label="address"] address1;}
		salary;
		{node [label="born"] born0;}
		
		// family
		{node [label="name"] name4;}
		{node [label="born"] born1;}
		relationship
		
	node [shape=diamond,style=filled,color=lightgrey]; // relations
		"d-m";
		"d-l";
		"d-p";
		"p-l";
		"d-e";
		"e-f";
		"m-e";
		//"C-I"; "S-C"; "S-I";

	department -- name0;
	department -- "d-m" [label="1"];
	department -- "d-l" [label="*"];
	department -- "d-p" [label="*"];
	department -- "d-e" [label="*"];
	
	"d-m" -- manager [label="*"];
	manager -- start;
	manager -- "m-e" [label="*"];
	
	"p-l" -- location [label="*"];
	"d-l" -- location [label="1"];
	location -- name1;
	location -- address0;
	
	"d-p" -- project [label="1"];
	project -- name2;
	project -- number;
	project -- "p-l" [label="1"];
	
	"d-e" -- employee[label="1"];
	"m-e" -- employee[label="1"];
	employee -- name3;
	employee -- ssno;
	employee -- address1;
	employee -- salary;
	employee -- born0;
	employee -- "e-f"[label="*"]
	
	"e-f" -- family[label="*"];
	family -- name4;
	family -- born1;
	family -- relationship;
	
	//name0 -- course;
	//code -- course;
	//course -- "C-I" [label="n",len=1.00];
	//"C-I" -- institute [label="1",len=1.00];
	//institute -- name1;
	//institute -- "S-I" [label="1",len=1.00];
	//"S-I" -- student [label="n",len=1.00];
	//student -- grade;
	//student -- name2;
	//student -- number;
	//student -- "S-C" [label="m",len=1.00];
	//"S-C" -- course [label="n",len=1.00];

	//label = "\n\nEntity Relation Diagram\ndrawn by NEATO";
	//fontsize=20;
}

