1. A method for processing data, comprising: obtaining a graph of a social network, wherein the graph comprises: a set of nodes representing users in the social network; and a set of edges representing relationships between pairs of the users; storing, on a single computer system, a static representation of the graph, wherein the static representation comprises: a first set of fixed-size blocks representing the nodes and the edges; and a first index that maps a set of identifiers for the nodes and the edges to offsets of the first set of fixed-size blocks; and using the static representation of the graph to process, by the single computer system, one or more queries of the graph.