I am trying to draw a very simple network diagram. My code:       \begin{tikzpicture}     \node[draw, shape=circle] (v0) at (0,0) {$v_0$};     \node[draw, shape=circle] (v1) at (1,0) {$v_1$};     \node[rectangle,minimum width=6em,draw] (v3) at (0.5,-1) {$v_3$};     \draw [thick] (v0) -- (v1)     (v0) -- (v3)     (v1) -- (v3);     \end{tikzpicture}   This produces the following figure:   I want the lines from the upper two nodes to go straight down towards the edge of the rectangle. Is there a simple way to do this?
When drawing a line between two nodes in TikZ, you can specify the anchors on the beginning and end nodes in order to control how the line is drawn.  I would like to specify the anchor on the beginning node, and the angle at which the line is drawn, and let TikZ figure out where it will intercept the end node.  The usual use case is when I'm connecting to a "big node" and I would like the lines to be vertical.  I can cheat by placing a coordinate behind the big node, drawing a line to the coordinate instead, and then drawing the big node so that it covers things up.  However this won't work if I need to put an arrow on the end.  I could try to calculate the intercept coordinate on the edge of the big node manually, but that seems against the TikZ spirit.  |- doesn't work in this case.  \documentclass[10pt]{minimal} \usepackage[active,tightpage,pdftex]{preview} \usepackage{tikz}  \begin{document} \begin{preview}  \tikzstyle{RectObject}=[rectangle,fill=white,draw,line width=0.5mm] \tikzstyle{line}=[draw] \tikzstyle{arrow}=[draw, -latex]   \begin{tikzpicture}   %%%%%%%%%%%%%%%%%%%%%%%%   %%  LEFT SIDE   %%%%%%%%%%%%%%%%%%%%%%%%   \draw (1,0) node[RectObject] (Small1A) {A};   \draw (3,0) node[RectObject] (Small1B) {B};   \coordinate (Cheat1A) at (1,2);   \coordinate (Cheat1B) at (3,2);   \path [line] (Small1A.north) -- (Cheat1A);   \path [line] (Small1B.north) -- (Cheat1B);    % need to draw Big Node last to cover up our cheating   \draw (2,2) node[RectObject, inner xsep=1cm] (Big1) {Big Node};    \draw (2,4) node[text width=4cm] (text1) {L: Cheating to control line orientation. Arrows would be hard.};    %%%%%%%%%%%%%%%%%%%%%%%%   %%  RIGHT SIDE   %%%%%%%%%%%%%%%%%%%%%%%%   \draw (7,2) node[RectObject, inner xsep=1cm] (Big2) {Big Node};   \draw (6,0) node[RectObject] (Small2A) {A};   \draw (8,0) node[RectObject] (Small2B) {B};   \path [arrow] (Small2A) -- (Big2);   \path [arrow] (Small2B) -- (Big2);    \draw (7,4) node[text width=4cm] (text2) {R: No cheating. Arrows easy. Can't control line orientation.}; \end{tikzpicture} \end{preview} \end{document}   Here's a side-by-side example of "cheating", which shows what I want to be able to do, and "not cheating", which does not do what I want.    The left side of this example shows what I want to be able to do, except I want to do it without cheating, and I'd like to put arrows on the end of the lines.
What are the consequences of a US citizen overstaying a Schengen visa? Is it possible to install an earlier version of Skype on Windows 8? Getting arguments underneath \min in an align environment I am looking to create realistic car movement using vectors How do you mock a Sealed class? can be quite a pain.  I currently favor an  to handle this, but something about just keeps feels weird.    So, What is the best way you mock sealed classes?  Java answers are more than welcome.  In fact, I would anticipate that the Java community has been dealing with this longer and has a great deal to offer.  But here are some of the .NET opinions: I found this very amusing comic on the internet the other day:   The last frame seems to claim that the harmonic series converges if you throw out all the terms with a $9$ in the denominator. Is this true? Where could I find a proof? Is it only true for terms with a $9$ or is it true for any number? If it's only true for $9$, why is that? Now that all SE sites have their own meta site, why doesn't Stack Apps have a meta?  Sure, Stack Apps is somewhat of a limited site (or rather, a site about a limited subject), so by some counts, it might not need a meta. However, I think there are some things that could be discussed about how Stack Apps should be run and there is no good place to do that now. Thus, I support the creation of a Stack Apps meta. Can every even integer be expressed as the difference of two primes? Radius of convergence of a sum of power series I have  two series  $\displaystyle\sum_{n=1}^{\infty} a_n x^{n}$   $\displaystyle\sum_{n=1}^{\infty} b_n x^{n}$  with radius of convergence $2$ and $3$ respectively.  How can I find the radius of convergence for the following?     $\displaystyle\sum_{n=1}^{\infty} (a_n +b_n)x^{n}$   Can anyone help me? Tool for cleaning LaTeX code Is there something like indent for LaTeX? I have a collaborator that is using Scientific Workplace and the code it produces is totally messed up; I know I shouldn't expect miracles, but any machine support would be useful.  EDIT: This question is quite undefined without my comment to KeithB's answer; the idea is to save VC-friendly one sentence/one paragraph per text file line structure which SWT "fixes" by wrapping everything into fixed column width format. Subdomain versus subdirectory I need to test this code, but when writing a trigger, I get an invalid type I need help. I am currently trying to test this code before uploading  public class CoreValuesExt { ApexPages.StandardController sc; public boolean readonly {get; set;} public Core_Values__c cv {get; set;} public integer countEdit = 1; public string buttonValue {get; set;} public integer recordScan;  public CoreValuesExt(ApexPages.StandardController sc) {     this.sc = sc;     cv = new Core_Values__c();     cv.Account__c = sc.getid();      readonly = true;     buttonValue = 'Edit';     recordScan = [SELECT COUNT() FROM Core_Values__c WHERE Account__c = :cv.Account__c];    if (recordScan != 0){    cv = [SELECT id, HSE__c, Professionalism_Integrity__c, Quality_Accuracy__c, Technology_Innovation__c, Timeliness__c, Value_for_money__c FROM Core_Values__c WHERE Account__c = :cv.Account__c];     }  }  public ApexPages.PageReference Save() {     return sc.Save(); }  public void ApplyAction() {     countEdit++;     Integer modolus = Math.mod(countEdit, 2);     String total = cv.HSE__c + cv.Professionalism_Integrity__c + cv.Quality_Accuracy__c + cv.Technology_Innovation__c + cv.Value_for_Money__c + cv.Timeliness__c;     if(modolus == 0)     {         readonly = false;         buttonValue = 'Save';     }     else     {         if(total != 'nullnullnullnullnullnull')            {         if (recordScan == 0){         insert cv;         readonly = true;         buttonValue = 'Edit';         }         else         {         update cv;         readonly = true;         buttonValue = 'Edit';         }         }     }    }   }  With this trigger.  trigger CoreValuesTrigger on Core_Values__c (before insert) {  Core_Values__c cvs = Trigger.new; CoreValuesExt.ApplyAction(cvs);  }   But when I try to save, I get a message saying:      Illegal assignment from List to   CoreValuesExt__Core_Values__c at line 3 column 1   "  How do I go through with this? I need help. Thanks Why did Obi-Wan Kenobi choose that moment to appear to Luke? C# Change A Button's Background Color Trouble Viewing Whole HDR Image as cycles world When I load an HDR image into an environment texture using Cycles Render, only a small fraction of the image appears. I have a feeling it's an easy fix, but I can not find what needs to be changed. Where to place log4j.xml The SourceForge signon page says I can associate an OpenID with my existing SourceForge account:    I enter my currently-signed-in SourceForge account password I select the custom OpenID URL and enter https://openid.stackexchange.com I'm redirected to https://openid.stackexchange.com/account/login?&lt;session key bits&gt; I enter my openid.stackexchange.com login information there I get the error message:     Cannot Complete Login      Detected an attempt to send an assertion when the identifier () is not owned by the logged in user.    I don't understand what that means. error C2143: syntax error : missing ';' before 'type' How do I clone a subdirectory only of a Git repository? I have my Git repository which, at the root, has two sub directories:  /finisht /static   When this was in , /finisht was checked out in one place, while /static was checked out elsewhere, like so:  svn co svn+ssh://admin@domain.com/home/admin/repos/finisht/static static   Is there a way to do this with Git? Bias and variance in leave-one-out vs K-fold cross validation How do  methods compare in terms of model variance and bias?   My question is partly motivated by this thread: . The answer there suggests that models learned with leave-one-out cross-validation have higher variance than those learned with regular $K$-fold cross-validation, making leave-one-out CV a worse choice.  However, my intuition tells me that in leave-one-out CV one should see relatively lower variance between models than in the $K$-fold CV, since we are only shifting one data point across folds and therefore the training sets between folds overlap substantially.  Or going in the other direction, if $K$ is low in the $K$-fold CV, the training sets would be quite different across folds, and the resulting models are more likely to be different (hence higher variance).  If the above argument is right, why would models learned with leave-one-out CV have higher variance?