Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5967827
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:00:01+00:00 2026-05-22T20:00:01+00:00

I have a large graph (30k vertices, 250m edges) and using boost graph library

  • 0

I have a large graph (30k vertices, 250m edges) and using boost graph library adjacency list (I tried both vecs and lists) consumes more than 25gb. since it is not very easy to get a pc with more than 16gb ram, what do you recommend to decrease memory usage ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T20:00:01+00:00Added an answer on May 22, 2026 at 8:00 pm

    I’ve had the same problem with a verification technique using graphs I’m working on.
    If you will work with a huge amount of data (vertices and also edges) you should use a fine tuned data structure created by yourself.

    If you have a lot of edges, you should consider using an Adjacency Matrix.
    The edges have weights, so you could use something like this:

    vector<int> vertices;
    vector<vector<int> > edges;
    

    You could use the optimized vector<vector<bool> > that uses only one bit to represent each edge, if the edges didn’t have a property.

    Although the adjacency matrix is fast when you want to check for an edge or add one, it’s not good to iterate over edges.

    I can say that, using the same properties in BGL and in my own graph, my graph is way smaller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the adjacency list of a large graph stored in a table. v1
I have designed a weighted graph using a normalized adjacency list in mysql. Now
I have a Graph being drawn inside a UIScrollView . It's one large UIView
I have a large application (~50 modules) using a structure similar to the following:
I have a large graph that I am generating in matplotlib. I'd like to
I have a large scene graph in Java 3D consisting out of a Group
I have a object graph that is setup like this Clients string Name List[Address]
I have a very, very large graph, and I want to find the shortest
I have a large directed acyclic graph that I would like to visualize in
I have a large (100,000+ nodes) Directed Acyclic Graph (DAG) and would like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.