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 8452225
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:26:42+00:00 2026-06-10T11:26:42+00:00

I want define new graph in sage. Let V be vector space over finite

  • 0

I want define new graph in sage. Let V be vector space over finite field GF(q). The graph’s vertices are i-dimensional subspace from V and n-i -dimensional subspace from V and two vertices are adjacent if and only if direct sum of two subspace is V.

I have trouble with define this graph in sage. Any suggestion?

  • 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-06-10T11:26:43+00:00Added an answer on June 10, 2026 at 11:26 am

    This should get you started:

    sage: p = 5
    sage: K = GF(p^2, 'a')
    sage: V = K^4
    sage: len(list(V.subspaces(1)))
    16276
    sage: len(list(V.subspaces(3)))
    16276
    

    So this graph is going to be pretty large: 16276 * 2 = 32552 vertices. Let’s do a smaller example. Then you could do something like

    sage: p = 3
    sage: K = GF(p)
    sage: V = K^4
    sage: vertices = list(V.subspaces(1)) + list(V.subspaces(3))
    sage: for X in vertices:
    ....:     L = []
    ....:     for Y in vertices:
    ....:         if X + Y == V:
    ....:             L.append(Y)
    ....:     d[X] = L
    ....:     
    sage: Graph(d)
    Graph on 80 vertices
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to define a class that is able to populate itself reading from
I am new to asp.net, I want to define #Region in my .cs page
I want to define a type cast from an arbitrary type to a primitive
I want to define a dynamic two-dimensional array in python. I don't know how
I want to define a new abstract data type which is either a general
I want to define a new function inside my RPC code. I am new
This should be an easy question. I'm new with Coq. I want to define
I often want to define new 'Exception' classes, but need to have an appropriate
I want to define a new class that inherit the build in str type,
I want to define a new type in C++ which is just some primitive

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.