Scalable Graph Algorithms In A High-Level Language Using Primitives Inspired By Linear Algebra