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

  • Home
  • SEARCH
  • 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 184639
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:19:39+00:00 2026-05-11T15:19:39+00:00

I think I have understood a particular situation as described below, but I lack

  • 0

I think I have understood a particular situation as described below, but I lack the theoretical knowledge to conduct a proof and I couldn’t find any source that mentions it. If my understanding is correct, I can save half the space on my adjacency matrix, if it isn’t I’m likely to have pretty weird bugs. So I’d like to be sure, and I’d appreciate if someone with a more solid background could review my reasoning.

Say I represent a DAG of n vertices in an n * n adjacency matrix such that the entry i,j is 1 if there is an edge from vertex i to vertex j, 0 otherwise. Because the graph is directed and acyclic, it follows that, if i,j = 1, then j,i = 0. If I now sort the nodes in the matrix such that the topological level of the node at in is equal to or greater than the node at in-1, then it seems to me that half of the adjacency matrix will always only contain 0s, as it is the case in the following example:

       V 1           V 2     from V    1 2 3 4 5 6 7 8       / \           / \       /   \         /   \      to V 1  0 0 0 0 0 0 0 0     /     \       /     \          2  0 0 0 0 0 0 0 0  e1/     e2\   e3/     e4\         3  1 0 0 0 0 0 0 0   /         \   /         \        4  1 1 0 0 0 0 0 0 V 3          V 4          V 5      5  0 1 0 0 0 0 0 0              /|\          /        6  0 0 0 1 0 0 0 0             / | \        /         7  0 0 0 1 0 0 0 0            /  |  \      /          8  0 0 0 1 1 0 0 0         e5/ e6| e7\  e8/          /    |    \  /        V 6   V 7   V 8 

Maybe I’m just right, but is there a formal way to check this?

  • 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. 2026-05-11T15:19:40+00:00Added an answer on May 11, 2026 at 3:19 pm

    Let adj[i][j] be the adjacency entry from node i to node j and you’ve sorted it such that for all nodes i < j, node i is higher up the topological hierarchy than node j.

    Let’s assume for a moment that your assumption was incorrect: that we have a counter-example for which adj[i][j] == 1 for i > j (i.e., a one in the upper-right half of your matrix representation). This implies that there must be a cycle containing i and j, since our sorting guarantees that node j is higher up than node i yet we have adj[i][j] == 1 implies we can ‘climb’ up the hierarchy. This is a contradiction, since we know we have a DAG. Therefore we have proven that your assumption is correct.

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

Sidebar

Related Questions

I'm terrible with math, but I have a situation where I need to find
I think I have a basic understanding of this, but am hoping that someone
I have an issue that (I think) might have to do with scope, but
I think I have a basic understanding of REST, but something I'm stuck on
Sorry couldn't think of a better title. :) Here goes, I have been pulling
I have a question on a solution I think is secure, but would like
I'm trying to understand mod_rewrite better and have one particular problem I think I
Think I have an integer array like this: a[0]=60; a[1]=321; a[2]=5; now I want
I think I have a problem with casting. $db = mysqli_connect('127.0.0.1','root','password','test'); if (! $db)
I think I have a big problem. I have a two projects solution. First

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.