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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:33:13+00:00 2026-06-15T11:33:13+00:00

Below is part of my work so far. I’m getting cycles and both ways

  • 0

Below is part of my work so far. I’m getting cycles and both ways connections in between my Lines and single connections from Messages to Lines for some reason. I don’t see why there are never more than one message to line connections. My facts are probably (most likely) a little wrong. Thanks for the help.

some sig Line{  
    nextLine: some Line,
}

sig Message{
    formedOfLines: Line,
}
fact MessageHasMoreThan1LineHasNextLine{
    all m:Message|#m.formedOfLines>1 implies #m.formedOfLines.nextLine>0
}
fact NoNextLineIsSelf
{
   all l1,l2:Line | l1=l2 implies l1.nextLine!=l2
}
fact LineBelongsToSomeMessage
{
    all l:Line | l in Message.formedOfLines
}
  • 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-15T11:33:14+00:00Added an answer on June 15, 2026 at 11:33 am

    Your model allows each Line to have multiple nextLines, which might not be your intention. That’s why your NoNextLineIsSelf fact doesn’t actually prevent loops, because l.nextLine != l can be true if l.nextLine contains more than one Line and one of them is l. You can rewrite that fact to

    all l: Line | l !in l.nextLine
    

    to forbid all loops.

    To forbid “two-way connections” between lines, you can write something like

    all disj l1, l2: Line | l2 in l1.nextLine implies l1 !in l2.nextLine
    

    (I’m not sure which one of your facts was supposed to do that)

    If you want a Message to have more than 1 line, you should change the multiplicity of the formedOfLines to set, i.e.,

    sig Message {
      formedOfLines: set Line
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So im stuck on a few things in each part below, they are pretty
a couple of questions (never done javascript before). Below is part of the what
I have part of the code below: while($array = $result->fetch_assoc() ){ $second_query = INSERT
if you open the below link the content part is overlapped by id #a
I have a table part with a few demo data as below in Oracle
Below, I inserted a code written by Ray Konopka (part of the Coderage presentation).
I got the below XML (It is just a part of a big XML
In the code below, I think I messed up this part: if ( (1
This is actually a three-part question, which I'll explain below, but the questions are:
the picture below has 2 divs, 1 is the part where the login form

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.