graphs and networks code bricks for JavaScript